summaryrefslogtreecommitdiffstats
path: root/libs/hwui/DisplayListOp.h
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2014-12-04 15:20:29 -0500
committerDerek Sollenberger <djsollen@google.com>2015-01-09 13:56:56 -0500
commit3d4eed7f1aa99401dabe2e45b82f98fb4fc2d754 (patch)
treee727b03577a823f638cab2f76a8a1161b73662eb /libs/hwui/DisplayListOp.h
parent83eb4443a9d24f2ae4a1e516354748850c10d06b (diff)
downloadframeworks_base-3d4eed7f1aa99401dabe2e45b82f98fb4fc2d754.zip
frameworks_base-3d4eed7f1aa99401dabe2e45b82f98fb4fc2d754.tar.gz
frameworks_base-3d4eed7f1aa99401dabe2e45b82f98fb4fc2d754.tar.bz2
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/DisplayListOp.h')
-rw-r--r--libs/hwui/DisplayListOp.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/libs/hwui/DisplayListOp.h b/libs/hwui/DisplayListOp.h
index 1b5af49..36c14c4 100644
--- a/libs/hwui/DisplayListOp.h
+++ b/libs/hwui/DisplayListOp.h
@@ -734,27 +734,6 @@ private:
Rect mSrc;
};
-class DrawBitmapDataOp : public DrawBitmapOp {
-public:
- DrawBitmapDataOp(const SkBitmap* bitmap, const SkPaint* paint)
- : DrawBitmapOp(bitmap, paint) {}
-
- virtual void applyDraw(OpenGLRenderer& renderer, Rect& dirty) override {
- renderer.drawBitmapData(mBitmap, mPaint);
- }
-
- virtual void output(int level, uint32_t logFlags) const override {
- OP_LOG("Draw bitmap %p", mBitmap);
- }
-
- virtual const char* name() override { return "DrawBitmapData"; }
-
- virtual void onDefer(OpenGLRenderer& renderer, DeferInfo& deferInfo,
- const DeferredDisplayState& state) override {
- deferInfo.batchId = DeferredDisplayList::kOpBatch_Bitmap;
- }
-};
-
class DrawBitmapMeshOp : public DrawBoundedOp {
public:
DrawBitmapMeshOp(const SkBitmap* bitmap, int meshWidth, int meshHeight,