diff options
author | sergeyv <sergeyv@google.com> | 2016-10-20 18:39:04 -0700 |
---|---|---|
committer | sergeyv <sergeyv@google.com> | 2016-10-21 12:11:44 -0700 |
commit | ec4a4b13eae2241d1613890c1c1c096bed891845 (patch) | |
tree | 8a59769cc8bff549e8ec0bbd048912e91f218ab6 /libs/hwui/DisplayList.h | |
parent | 5fd2a1cb2726afa7d40fe4750e9defd89c24ed37 (diff) |
Use Bitmap in DisplayList & RecordedOps instead of SkBitmap
Test: refactoring cl.
bug:32216791
Change-Id: I1d8a9a6e772e2176b6c2409409a910478b45f8db
Diffstat (limited to 'libs/hwui/DisplayList.h')
-rw-r--r-- | libs/hwui/DisplayList.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/hwui/DisplayList.h b/libs/hwui/DisplayList.h index 06b08919732f..cab092ffc34c 100644 --- a/libs/hwui/DisplayList.h +++ b/libs/hwui/DisplayList.h @@ -38,6 +38,7 @@ #include "Matrix.h" #include "RenderProperties.h" #include "TreeInfo.h" +#include "hwui/Bitmap.h" #include <vector> @@ -101,7 +102,7 @@ public: const LsaVector<NodeOpType*>& getChildren() const { return children; } - const LsaVector<const SkBitmap*>& getBitmapResources() const { return bitmapResources; } + const LsaVector<sk_sp<Bitmap>>& getBitmapResources() const { return bitmapResources; } size_t addChild(NodeOpType* childOp); @@ -140,7 +141,7 @@ private: LsaVector<NodeOpType*> children; // Resources - Skia objects + 9 patches referred to by this DisplayList - LsaVector<const SkBitmap*> bitmapResources; + LsaVector<sk_sp<Bitmap>> bitmapResources; LsaVector<const SkPath*> pathResources; LsaVector<const Res_png_9patch*> patchResources; LsaVector<std::unique_ptr<const SkPaint>> paints; |