| Index: cc/layers/contents_scaling_layer.cc
|
| diff --git a/cc/layers/contents_scaling_layer.cc b/cc/layers/contents_scaling_layer.cc
|
| index 03a790b67dd07fa44c75d2ca3ec0b895ffdcc311..44a3f372c6593ae0f5c70a1e544e1d5c42e5c178 100644
|
| --- a/cc/layers/contents_scaling_layer.cc
|
| +++ b/cc/layers/contents_scaling_layer.cc
|
| @@ -38,15 +38,17 @@ void ContentsScalingLayer::CalculateContentsScale(
|
| bool ContentsScalingLayer::Update(
|
| ResourceUpdateQueue* queue,
|
| const OcclusionTracker* occlusion) {
|
| + bool updated = Layer::Update(queue, occlusion);
|
| +
|
| if (draw_properties().contents_scale_x == last_update_contents_scale_x_ &&
|
| draw_properties().contents_scale_y == last_update_contents_scale_y_)
|
| - return false;
|
| + return updated;
|
|
|
| last_update_contents_scale_x_ = draw_properties().contents_scale_x;
|
| last_update_contents_scale_y_ = draw_properties().contents_scale_y;
|
| // Invalidate the whole layer if scale changed.
|
| SetNeedsDisplayRect(gfx::Rect(paint_properties().bounds));
|
| - return false;
|
| + return updated;
|
| }
|
|
|
| } // namespace cc
|
|
|