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

Unified Diff: cc/layers/layer.h

Issue 800613009: Convert scroll offsets to use SyncedProperty. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up, rebase 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
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 43037de55675e0f8db87dc5b674445cf3163aa05..ed5a47947cf2bd00d85328982fb64423734e6d3a 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -318,9 +318,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
bool force_render_surface() const { return force_render_surface_; }
gfx::Vector2dF ScrollDelta() const { return gfx::Vector2dF(); }
- gfx::ScrollOffset TotalScrollOffset() const {
- return ScrollOffsetWithDelta(scroll_offset(), ScrollDelta());
- }
+ gfx::ScrollOffset CurrentScrollOffset() const { return scroll_offset_; }
void SetDoubleSided(bool double_sided);
bool double_sided() const { return double_sided_; }
« no previous file with comments | « cc/base/synced_property.h ('k') | cc/layers/layer.cc » ('j') | cc/layers/layer_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698