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

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: Use a gyp variable 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
« no previous file with comments | « build/common.gypi ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 602ebc06eaa05b2be262299e93e41d4cc84da169..879834d8649eae902ef6294ed9849b9885c02cb4 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_; }
« no previous file with comments | « 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