Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3564)

Unified Diff: cc/layers/tiled_layer_impl.cc

Issue 800613009: Convert scroll offsets to use SyncedProperty. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android WebView tests Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/tiled_layer_impl.h ('k') | cc/test/fake_content_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/tiled_layer_impl.cc
diff --git a/cc/layers/tiled_layer_impl.cc b/cc/layers/tiled_layer_impl.cc
index 31a8f394fa793562aa7f8430642d165893792a36..535744d51293a8b9a637be2a0b9b7cf7a2982cce 100644
--- a/cc/layers/tiled_layer_impl.cc
+++ b/cc/layers/tiled_layer_impl.cc
@@ -48,7 +48,15 @@ class DrawableTile : public LayerTilingData::Tile {
};
TiledLayerImpl::TiledLayerImpl(LayerTreeImpl* tree_impl, int id)
- : LayerImpl(tree_impl, id), skips_draw_(true) {}
+ : TiledLayerImpl(tree_impl, id, new LayerImpl::SyncedScrollOffset) {
+}
+
+TiledLayerImpl::TiledLayerImpl(
+ LayerTreeImpl* tree_impl,
+ int id,
+ scoped_refptr<LayerImpl::SyncedScrollOffset> synced_scroll_offset)
+ : LayerImpl(tree_impl, id, synced_scroll_offset), skips_draw_(true) {
+}
TiledLayerImpl::~TiledLayerImpl() {
}
@@ -102,7 +110,7 @@ void TiledLayerImpl::GetDebugBorderProperties(SkColor* color,
scoped_ptr<LayerImpl> TiledLayerImpl::CreateLayerImpl(
LayerTreeImpl* tree_impl) {
- return TiledLayerImpl::Create(tree_impl, id());
+ return TiledLayerImpl::Create(tree_impl, id(), synced_scroll_offset());
}
void TiledLayerImpl::AsValueInto(base::debug::TracedValue* state) const {
« no previous file with comments | « cc/layers/tiled_layer_impl.h ('k') | cc/test/fake_content_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698