diff options
author | Romain Guy <romainguy@google.com> | 2010-06-30 17:56:19 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-06-30 17:56:19 -0700 |
commit | c1396e93b6a5286a5183c00c781b62e940a12c1f (patch) | |
tree | 41da22a7756936c8cbc4687286e9b854235cd3f5 /libs/hwui/OpenGLRenderer.h | |
parent | efcd77407b321498a43ca380c8f67b84eb5a2d6e (diff) | |
download | frameworks_base-c1396e93b6a5286a5183c00c781b62e940a12c1f.zip frameworks_base-c1396e93b6a5286a5183c00c781b62e940a12c1f.tar.gz frameworks_base-c1396e93b6a5286a5183c00c781b62e940a12c1f.tar.bz2 |
Add implementation for drawBitmap().
Change-Id: Iada9325f3c5642b61c2e0c4cd80bcfbc92cb491e
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
-rw-r--r-- | libs/hwui/OpenGLRenderer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index e5cc98c..965188f 100644 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -102,7 +102,7 @@ public: bool quickReject(float left, float top, float right, float bottom); bool clipRect(float left, float top, float right, float bottom); - void drawBitmap(const SkBitmap* bitmap, float left, float top, const SkPaint* paint); + void drawBitmap(SkBitmap* bitmap, float left, float top, const SkPaint* paint); void drawColor(int color, SkXfermode::Mode mode); void drawRect(float left, float top, float right, float bottom, const SkPaint* paint); @@ -183,10 +183,11 @@ private: * @param texture The texture name to map onto the rectangle * @param alpha An additional translucency parameter, between 0.0f and 1.0f * @param mode The blending mode + * @param blend True if the texture contains an alpha channel * @param isPremultiplied Indicates whether the texture has premultiplied alpha */ void drawTextureRect(float left, float top, float right, float bottom, GLuint texture, - float alpha, SkXfermode::Mode mode, bool isPremultiplied = false); + float alpha, SkXfermode::Mode mode, bool blend, bool isPremultiplied = false); /** * Resets the texture coordinates stored in mDrawTextureVertices. Setting the values |