@@ -27,7 +27,7 @@ void DiffContext::BeginSubtree() {
2727 bool had_integral_transform = state_.integral_transform ;
2828 state_.rect_index = rects_->size ();
2929 state_.has_filter_bounds_adjustment = false ;
30- state_.has_volatile_layer = false ;
30+ state_.has_texture = false ;
3131 state_.integral_transform = false ;
3232
3333 if (had_integral_transform) {
@@ -162,10 +162,6 @@ bool DiffContext::PushCullRect(const SkRect& clip) {
162162 return !state_.matrix_clip .device_cull_rect ().isEmpty ();
163163}
164164
165- void DiffContext::ForceFullRepaint () {
166- damage_ = SkRect::MakeIWH (frame_size_.width (), frame_size_.height ());
167- }
168-
169165SkMatrix DiffContext::GetTransform3x3 () const {
170166 return state_.matrix_clip .matrix_3x3 ();
171167}
@@ -207,14 +203,14 @@ void DiffContext::AddLayerBounds(const SkRect& rect) {
207203 }
208204}
209205
210- void DiffContext::MarkSubtreeHasVolatileLayer () {
206+ void DiffContext::MarkSubtreeHasTextureLayer () {
211207 // Set the has_texture flag on current state and all parent states. That
212208 // way we'll know that we can't skip diff for retained layers because
213209 // they contain a TextureLayer.
214210 for (auto & state : state_stack_) {
215- state.has_volatile_layer = true ;
211+ state.has_texture = true ;
216212 }
217- state_.has_volatile_layer = true ;
213+ state_.has_texture = true ;
218214}
219215
220216void DiffContext::AddExistingPaintRegion (const PaintRegion& region) {
@@ -242,7 +238,7 @@ PaintRegion DiffContext::CurrentSubtreeRegion() const {
242238 readbacks_.begin (), readbacks_.end (),
243239 [&](const Readback& r) { return r.position >= state_.rect_index ; });
244240 return PaintRegion (rects_, state_.rect_index , rects_->size (), has_readback,
245- state_.has_volatile_layer );
241+ state_.has_texture );
246242}
247243
248244void DiffContext::AddDamage (const PaintRegion& damage) {
0 commit comments