diff options
| author | 2015-06-09 13:12:40 -0700 | |
|---|---|---|
| committer | 2015-06-09 15:27:52 -0700 | |
| commit | 37b0824a46157b7e169ad7ec33a46e89c851884c (patch) | |
| tree | 0fae87101df3a38ff8ef5c125cc6bdb3498bdad9 /libs/hwui/OpenGLRenderer.h | |
| parent | 4538ef2abcdf672e12f00bd944a816af35f16ed1 (diff) | |
Upload bitmaps in SkShader* safely
Bug: 19412589
Change-Id: Id50c08ff523d5540f60c39b435c0ab1b4c685655
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
| -rwxr-xr-x | libs/hwui/OpenGLRenderer.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index 29fbf0c985d7..5850dc671889 100755 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -524,22 +524,6 @@ protected: inline float getLayerAlpha(const Layer* layer) const; /** - * Safely retrieves the ColorFilter from the given Paint. If the paint is - * null then null is returned. - */ - static inline SkColorFilter* getColorFilter(const SkPaint* paint) { - return paint ? paint->getColorFilter() : nullptr; - } - - /** - * Safely retrieves the Shader from the given Paint. If the paint is - * null then null is returned. - */ - static inline const SkShader* getShader(const SkPaint* paint) { - return paint ? paint->getShader() : nullptr; - } - - /** * Set to true to suppress error checks at the end of a frame. */ virtual bool suppressErrorChecks() const { |