diff options
author | Derek Sollenberger <djsollen@google.com> | 2014-02-11 11:46:49 -0500 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2014-02-12 11:26:06 -0500 |
commit | e889298cd6ae1fc0d76bc00d7d12586db03eb261 (patch) | |
tree | a2f5114d1ea5ff1265e28e2b01b4750d5d2741f3 /libs/hwui/DeferredLayerUpdater.h | |
parent | 826e51c4da2beac50c0ed1e1359787a0b69c878c (diff) |
Refactor setting an SkPaint onto a hwui Layer.
This CL removes the unecessary JNI call to set the colorFilter on
a layer.
Change-Id: I9e088f888938d4315745aa618334bfdb9e61343a
Diffstat (limited to 'libs/hwui/DeferredLayerUpdater.h')
-rw-r--r-- | libs/hwui/DeferredLayerUpdater.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/hwui/DeferredLayerUpdater.h b/libs/hwui/DeferredLayerUpdater.h index 0350eef36e08..2735b9e2a6f7 100644 --- a/libs/hwui/DeferredLayerUpdater.h +++ b/libs/hwui/DeferredLayerUpdater.h @@ -73,11 +73,7 @@ public: ANDROID_API void setDisplayList(DisplayList* displayList, int left, int top, int right, int bottom); - ANDROID_API void setPaint(const SkPaint* paint) { - OpenGLRenderer::getAlphaAndModeDirect(paint, &mAlpha, &mMode); - } - - ANDROID_API void setColorFilter(SkColorFilter* colorFilter); + ANDROID_API void setPaint(const SkPaint* paint); ANDROID_API bool apply(); ANDROID_API void applyDeferred(DeferredLayerUpdater* deferredApply); |