| Index: cc/layers/layer.h
|
| diff --git a/cc/layers/layer.h b/cc/layers/layer.h
|
| index ab897a8ac9914ab08085ab45aa8b1ea8fa4ababf..124d6a2de3bf5798cda1d67adf6adb8ef0398e1d 100644
|
| --- a/cc/layers/layer.h
|
| +++ b/cc/layers/layer.h
|
| @@ -7,6 +7,8 @@
|
|
|
| #include <set>
|
| #include <string>
|
| +#include <utility>
|
| +#include <vector>
|
|
|
| #include "base/callback.h"
|
| #include "base/memory/ref_counted.h"
|
| @@ -73,6 +75,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
|
| typedef RenderSurfaceLayerList RenderSurfaceListType;
|
| typedef LayerList LayerListType;
|
| typedef RenderSurface RenderSurfaceType;
|
| + typedef std::vector<std::pair<int64_t, gfx::Rect> > DrawFrameRequestRectsType;
|
|
|
| enum LayerIdLabels {
|
| INVALID_ID = -1,
|
| @@ -296,6 +299,11 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
|
| return touch_event_handler_region_;
|
| }
|
|
|
| + void SetDrawFrameRequestRects(const DrawFrameRequestRectsType& rects);
|
| + const DrawFrameRequestRectsType& draw_frame_request_rects() const {
|
| + return draw_frame_request_rects_;
|
| + }
|
| +
|
| void set_did_scroll_callback(const base::Closure& callback) {
|
| did_scroll_callback_ = callback;
|
| }
|
| @@ -598,6 +606,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
|
| bool transform_is_invertible_ : 1;
|
| Region non_fast_scrollable_region_;
|
| Region touch_event_handler_region_;
|
| + DrawFrameRequestRectsType draw_frame_request_rects_;
|
| gfx::PointF position_;
|
| SkColor background_color_;
|
| float opacity_;
|
|
|