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

Unified Diff: cc/surfaces/surface.h

Issue 511423004: Add LatencyInfo support for Surfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/surfaces/display.cc ('k') | cc/surfaces/surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface.h
diff --git a/cc/surfaces/surface.h b/cc/surfaces/surface.h
index 3d48196fc25076ea4448864709ebf3e68e5dcff8..78b54ccd79941ca48e0e72ee2a7d357d13c9a253 100644
--- a/cc/surfaces/surface.h
+++ b/cc/surfaces/surface.h
@@ -13,6 +13,10 @@
#include "cc/surfaces/surfaces_export.h"
#include "ui/gfx/size.h"
+namespace ui {
+struct LatencyInfo;
+}
+
namespace cc {
class CompositorFrame;
class CopyOutputRequest;
@@ -37,6 +41,7 @@ class CC_SURFACES_EXPORT Surface {
// Returns a number that increments by 1 every time a new frame is enqueued.
int frame_index() const { return frame_index_; }
+ void TakeLatencyInfo(std::vector<ui::LatencyInfo>* latency_info);
void RunDrawCallbacks();
SurfaceFactory* factory() { return factory_; }
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/surfaces/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698