diff options
author | 2010-07-16 14:12:24 -0700 | |
---|---|---|
committer | 2010-07-16 14:12:24 -0700 | |
commit | 079ba2c85b15e882629b8d188f5fbdb42f7f8eea (patch) | |
tree | dcdad4233c75952bea11e4d5b945996a0f930a9a /libs/hwui/OpenGLRenderer.h | |
parent | ebd6f94dbdafdb14d620d2bd8e08535a309f266a (diff) |
Improve clip support (add intersect, union and replace.)
This change also modifies the way the clip is stored. The clip is now
always stored in screen-space coordinates.
Change-Id: I96375784d82dfe975bc6477a159e6866e7052487
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
-rw-r--r-- | libs/hwui/OpenGLRenderer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index 2a964323a8b3..566722966646 100644 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -23,6 +23,7 @@ #include <SkBitmap.h> #include <SkMatrix.h> #include <SkPaint.h> +#include <SkRegion.h> #include <SkShader.h> #include <SkXfermode.h> @@ -88,7 +89,7 @@ public: const Rect& getClipBounds(); bool quickReject(float left, float top, float right, float bottom); - bool clipRect(float left, float top, float right, float bottom); + bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op); void drawBitmap(SkBitmap* bitmap, float left, float top, const SkPaint* paint); void drawBitmap(SkBitmap* bitmap, const SkMatrix* matrix, const SkPaint* paint); |