@@ -55,25 +55,16 @@ class CacheableLayerWrapper : public CacheableItemWrapperBase {
5555// CacheableEntry is a wrapper to erasure the Entry type.
5656class SkGPUObjectCacheableWrapper : public CacheableItemWrapperBase {
5757 public:
58- explicit SkGPUObjectCacheableWrapper (SkPoint offset,
59- bool is_complex,
60- bool will_change)
61- : offset_(offset), is_complex_(is_complex), will_change_(will_change) {}
58+ explicit SkGPUObjectCacheableWrapper (SkPoint offset) : offset_(offset) {}
6259
6360 protected:
6461 SkPoint offset_;
65- bool is_complex_ = false ;
66- bool will_change_ = false ;
6762};
6863
6964class CacheableDisplayListWrapper : public SkGPUObjectCacheableWrapper {
7065 public:
71- CacheableDisplayListWrapper (DisplayList* display_list,
72- SkPoint offset,
73- bool is_complex,
74- bool will_change)
75- : SkGPUObjectCacheableWrapper(offset, is_complex, will_change),
76- display_list_ (display_list) {}
66+ CacheableDisplayListWrapper (DisplayList* display_list, SkPoint offset)
67+ : SkGPUObjectCacheableWrapper(offset), display_list_(display_list) {}
7768
7869 void TryToPrepareRasterCache (PrerollContext* context,
7970 const SkMatrix& matrix) override ;
@@ -88,12 +79,8 @@ class CacheableDisplayListWrapper : public SkGPUObjectCacheableWrapper {
8879
8980class CacheableSkPictureWrapper : public SkGPUObjectCacheableWrapper {
9081 public:
91- CacheableSkPictureWrapper (SkPicture* sk_picture,
92- SkPoint offset,
93- bool is_complex,
94- bool will_change)
95- : SkGPUObjectCacheableWrapper(offset, is_complex, will_change),
96- sk_picture_ (sk_picture) {}
82+ CacheableSkPictureWrapper (SkPicture* sk_picture, SkPoint offset)
83+ : SkGPUObjectCacheableWrapper(offset), sk_picture_(sk_picture) {}
9784
9885 void TryToPrepareRasterCache (PrerollContext* context,
9986 const SkMatrix& matrix) override ;
@@ -130,13 +117,10 @@ class RasterCacheableEntry {
130117 const PrerollContext& context,
131118 const SkMatrix& matrix,
132119 SkPoint offset,
133- bool is_complex = false ,
134- bool will_change = false ,
135120 unsigned num_child = 0 ,
136121 bool need_caching = true ) {
137122 return std::make_shared<RasterCacheableEntry>(
138- std::make_unique<CacheableDisplayListWrapper>(display_list, offset,
139- is_complex, will_change),
123+ std::make_unique<CacheableDisplayListWrapper>(display_list, offset),
140124 context, matrix, num_child, need_caching);
141125 }
142126
@@ -145,14 +129,11 @@ class RasterCacheableEntry {
145129 const PrerollContext& context,
146130 const SkMatrix& matrix,
147131 SkPoint offset,
148- bool is_complex = false ,
149- bool will_change = false ,
150132 unsigned num_child = 0 ,
151133 bool need_caching = true ) {
152134 return std::make_shared<RasterCacheableEntry>(
153- std::make_unique<CacheableSkPictureWrapper>(picture, offset, is_complex,
154- will_change),
155- context, matrix, num_child, need_caching);
135+ std::make_unique<CacheableSkPictureWrapper>(picture, offset), context,
136+ matrix, num_child, need_caching);
156137 }
157138
158139 CacheableItemWrapperBase* GetCacheableWrapper () const { return item_.get (); }
0 commit comments