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_; } |