Index: cc/layers/layer_impl.h |
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h |
index 979d2e02c8c0a96ce4ce13b2de5a5c38f20ba5c3..3f90459f4bd4105eb6830a9b751115c3144ef135 100644 |
--- a/cc/layers/layer_impl.h |
+++ b/cc/layers/layer_impl.h |
@@ -7,6 +7,8 @@ |
#include <set> |
#include <string> |
+#include <utility> |
+#include <vector> |
#include "base/logging.h" |
#include "base/memory/scoped_ptr.h" |
@@ -81,6 +83,7 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver, |
typedef LayerImplList RenderSurfaceListType; |
typedef LayerImplList LayerListType; |
typedef RenderSurfaceImpl RenderSurfaceType; |
+ typedef std::vector<std::pair<int64_t, gfx::Rect> > DrawFrameRequestRectsType; |
enne (OOO)
2014/07/22 20:44:25
This could maybe go in LayerTreeHostCommon too wit
Mike B
2014/07/25 23:09:40
Done.
|
enum RenderingContextConstants { NO_RENDERING_CONTEXT = 0 }; |
@@ -442,6 +445,13 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver, |
return touch_event_handler_region_; |
} |
+ void SetDrawFrameRequestRects(const DrawFrameRequestRectsType& rects) { |
+ draw_frame_request_rects_ = rects; |
+ } |
+ const DrawFrameRequestRectsType& draw_frame_request_rects() const { |
+ return draw_frame_request_rects_; |
+ } |
+ |
void SetDrawCheckerboardForMissingTiles(bool checkerboard) { |
draw_checkerboard_for_missing_tiles_ = checkerboard; |
} |
@@ -637,6 +647,7 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver, |
bool is_container_for_fixed_position_layers_ : 1; |
Region non_fast_scrollable_region_; |
Region touch_event_handler_region_; |
+ DrawFrameRequestRectsType draw_frame_request_rects_; |
SkColor background_color_; |
float opacity_; |