From 37b0824a46157b7e169ad7ec33a46e89c851884c Mon Sep 17 00:00:00 2001 From: John Reck Date: Tue, 9 Jun 2015 13:12:40 -0700 Subject: Upload bitmaps in SkShader* safely Bug: 19412589 Change-Id: Id50c08ff523d5540f60c39b435c0ab1b4c685655 --- libs/hwui/OpenGLRenderer.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'libs/hwui/OpenGLRenderer.h') 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 @@ -523,22 +523,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. */ -- cgit v1.2.3-59-g8ed1b