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

Unified Diff: cc/layers/layer.h

Issue 18400003: cc: Consider scroll offset in CalcDrawProperties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add common.gypi define Created 7 years, 5 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 ec0c7dcfc0a26028a3ba6678f2cda4edd2de5e04..4bdd53a54c00c8e9d3b30a71947f308f7fd18877 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -242,6 +242,10 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
bool force_render_surface() const { return force_render_surface_; }
gfx::Vector2d ScrollDelta() const { return gfx::Vector2d(); }
+ gfx::Vector2dF TotalScrollOffset() const {
+ // Floating point to match the LayerImpl version.
+ return scroll_offset() + ScrollDelta();
+ }
void SetDoubleSided(bool double_sided);
bool double_sided() const { return double_sided_; }
« build/common.gypi ('K') | « build/common.gypi ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698