diff options
author | 2014-12-04 15:20:29 -0500 | |
---|---|---|
committer | 2015-01-09 13:56:56 -0500 | |
commit | 3d4eed7f1aa99401dabe2e45b82f98fb4fc2d754 (patch) | |
tree | e727b03577a823f638cab2f76a8a1161b73662eb /libs/hwui/OpenGLRenderer.cpp | |
parent | 83eb4443a9d24f2ae4a1e516354748850c10d06b (diff) |
Update HWUI to store its own SkBitmap objects
This enables us to...
1) simplify the lifecycle/ownership between Java and HWUI
2) remove DisplayListRenderer::drawBitmapData and associated logic
3) track pixel lifecycle using standard SkPixelRef refcounting
4) Remove uncessary calls to ref/unref the bitmap's pixels and colorTable
Change-Id: I3c95078da20995444f6388a029414280fd654318
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rwxr-xr-x | libs/hwui/OpenGLRenderer.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 3c8fb8bbde6d..d1e51e1ca4ef 100755 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -2006,24 +2006,6 @@ void OpenGLRenderer::drawBitmap(const SkBitmap* bitmap, const SkPaint* paint) { mDirty = true; } -void OpenGLRenderer::drawBitmapData(const SkBitmap* bitmap, const SkPaint* paint) { - if (quickRejectSetupScissor(0, 0, bitmap->width(), bitmap->height())) { - return; - } - - mCaches.activeTexture(0); - Texture* texture = mCaches.textureCache.getTransient(bitmap); - const AutoTexture autoCleanup(texture); - - if (CC_UNLIKELY(bitmap->colorType() == kAlpha_8_SkColorType)) { - drawAlphaBitmap(texture, 0, 0, paint); - } else { - drawTextureRect(0, 0, bitmap->width(), bitmap->height(), texture, paint); - } - - mDirty = true; -} - void OpenGLRenderer::drawBitmapMesh(const SkBitmap* bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) { if (!vertices || mState.currentlyIgnored()) { |