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

Unified Diff: cc/layers/layer_impl.h

Issue 397443002: [not for review] Add Draw entries to window Performance Timeline Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git pull of third_party/WebKit Created 6 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
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_;

Powered by Google App Engine
This is Rietveld 408576698