Index: cc/layers/layer.cc |
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc |
index 63b9990d65faf0e9cb34cac442e7a2c03c44e08a..638741614fc6826db7a8ae5bc85852fd7f29d438 100644 |
--- a/cc/layers/layer.cc |
+++ b/cc/layers/layer.cc |
@@ -736,6 +736,15 @@ void Layer::SetTouchEventHandlerRegion(const Region& region) { |
SetNeedsCommit(); |
} |
+void Layer::SetSmoothnessTimingRequests( |
+ const SmoothnessTimingRequestsType& rects) { |
+ DCHECK(IsPropertyChangeAllowed()); |
+ if (smoothness_timing_requests_ == rects) |
+ return; |
+ smoothness_timing_requests_ = rects; |
+ SetNeedsCommit(); |
+} |
+ |
void Layer::SetDrawCheckerboardForMissingTiles(bool checkerboard) { |
DCHECK(IsPropertyChangeAllowed()); |
if (draw_checkerboard_for_missing_tiles_ == checkerboard) |
@@ -889,6 +898,7 @@ void Layer::PushPropertiesTo(LayerImpl* layer) { |
layer->SetHaveScrollEventHandlers(have_scroll_event_handlers_); |
layer->SetNonFastScrollableRegion(non_fast_scrollable_region_); |
layer->SetTouchEventHandlerRegion(touch_event_handler_region_); |
+ layer->SetSmoothnessTimingRequests(smoothness_timing_requests_); |
layer->SetContentsOpaque(contents_opaque_); |
if (!layer->OpacityIsAnimatingOnImplOnly() && !OpacityIsAnimating()) |
layer->SetOpacity(opacity_); |