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

Unified Diff: cc/layers/layer.h

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 11 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
« no previous file with comments | « cc/layers/delegated_renderer_layer_impl_unittest.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 017df68429956cc0065a7b98c9a4a7e713f24979..e4344127c7643976dff8a2231d7ad44438bf0d1c 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -7,6 +7,7 @@
#include <set>
#include <string>
+#include <vector>
#include "base/callback.h"
#include "base/memory/ref_counted.h"
@@ -17,6 +18,7 @@
#include "cc/base/cc_export.h"
#include "cc/base/region.h"
#include "cc/base/scoped_ptr_vector.h"
+#include "cc/debug/frame_timing_request.h"
#include "cc/debug/micro_benchmark.h"
#include "cc/layers/draw_properties.h"
#include "cc/layers/layer_lists.h"
@@ -505,6 +507,9 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
return has_render_surface_;
}
+ // Sets new frame timing requests for this layer.
+ void SetFrameTimingRequests(const std::vector<FrameTimingRequest>& requests);
+
protected:
friend class LayerImpl;
friend class TreeSynchronizer;
@@ -697,6 +702,10 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
scoped_ptr<RenderSurface> render_surface_;
gfx::Rect visible_rect_from_property_trees_;
+
+ std::vector<FrameTimingRequest> frame_timing_requests_;
+ bool frame_timing_requests_dirty_;
+
DISALLOW_COPY_AND_ASSIGN(Layer);
};
« no previous file with comments | « cc/layers/delegated_renderer_layer_impl_unittest.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698