summaryrefslogtreecommitdiff
path: root/libs/hwui/OpenGLRenderer.h
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2015-06-09 13:12:40 -0700
committer John Reck <jreck@google.com> 2015-06-09 15:27:52 -0700
commit37b0824a46157b7e169ad7ec33a46e89c851884c (patch)
tree0fae87101df3a38ff8ef5c125cc6bdb3498bdad9 /libs/hwui/OpenGLRenderer.h
parent4538ef2abcdf672e12f00bd944a816af35f16ed1 (diff)
Upload bitmaps in SkShader* safely
Bug: 19412589 Change-Id: Id50c08ff523d5540f60c39b435c0ab1b4c685655
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
-rwxr-xr-xlibs/hwui/OpenGLRenderer.h16
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 {