Index: cc/test/layer_tree_host_common_test.h |
diff --git a/cc/test/layer_tree_host_common_test.h b/cc/test/layer_tree_host_common_test.h |
index 2a66715f549b16c3e1afe91c68e719344ea37b14..1717d13a938b3258d5230a609da0533b347f4a42 100644 |
--- a/cc/test/layer_tree_host_common_test.h |
+++ b/cc/test/layer_tree_host_common_test.h |
@@ -159,6 +159,14 @@ class LayerTreeHostCommonTest : public LayerTreeHostCommonTestBase, |
public: |
LayerTreeHostCommonTest(); |
explicit LayerTreeHostCommonTest(const LayerTreeSettings& settings); |
+ |
+ protected: |
+ static void SetScrollOffsetDelta(LayerImpl* layer_impl, |
+ const gfx::Vector2dF& delta) { |
+ layer_impl->SetCurrentScrollOffset( |
+ layer_impl->synced_scroll_offset()->ActiveBase() + |
+ gfx::ScrollOffset(delta)); |
+ } |
}; |
} // namespace cc |