summaryrefslogtreecommitdiffstats
path: root/libs/hwui/OpenGLRenderer.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-08-18 11:47:12 -0700
committerRomain Guy <romainguy@google.com>2010-08-18 11:47:12 -0700
commit2542d199745cdf3ec910b8e3e4cff5851ed24e9b (patch)
treeb0628a20db972e570e5781a957a2747dc3a3c16a /libs/hwui/OpenGLRenderer.h
parenta8031c68c8e7ac5b1edfff2b6d03e3b46ec38a9d (diff)
downloadframeworks_base-2542d199745cdf3ec910b8e3e4cff5851ed24e9b.zip
frameworks_base-2542d199745cdf3ec910b8e3e4cff5851ed24e9b.tar.gz
frameworks_base-2542d199745cdf3ec910b8e3e4cff5851ed24e9b.tar.bz2
Layers were using an extra Snapshot causing extra clipping.
Bug #2919310 Change-Id: I72ccd44bba7a3f3db72f581aa96198b6226e4478
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
-rw-r--r--libs/hwui/OpenGLRenderer.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h
index 49143a5..5c0089f 100644
--- a/libs/hwui/OpenGLRenderer.h
+++ b/libs/hwui/OpenGLRenderer.h
@@ -120,8 +120,7 @@ private:
/**
* Restores the current snapshot; mSnapshot becomes mSnapshot->previous.
*
- * @return True if the clip should be also reapplied by calling
- * #setScissorFromClip().
+ * @return True if the clip was modified.
*/
bool restoreSnapshot();
@@ -232,8 +231,10 @@ private:
* @param x The x coordinate of the shadow
* @param y The y coordinate of the shadow
* @param mode The blending mode
+ * @param alpha The alpha value
*/
- void setupShadow(const ShadowTexture* texture, float x, float y, SkXfermode::Mode mode);
+ void setupShadow(const ShadowTexture* texture, float x, float y, SkXfermode::Mode mode,
+ float alpha);
/**
* Prepares the renderer to draw the specified Alpha8 texture as a rectangle.