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

Unified Diff: cc/surfaces/surface.h

Issue 539783002: 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..600202e2f5aba8df7d9b8a4362b68725e4616b56 100644
--- a/cc/surfaces/surface.h
+++ b/cc/surfaces/surface.h
@@ -5,6 +5,8 @@
#ifndef CC_SURFACES_SURFACE_H_
#define CC_SURFACES_SURFACE_H_
+#include <vector>
+
#include "base/callback.h"
#include "base/containers/hash_tables.h"
#include "base/macros.h"
@@ -13,6 +15,10 @@
#include "cc/surfaces/surfaces_export.h"
#include "ui/gfx/size.h"
+namespace ui {
+struct LatencyInfo;
+}
+
namespace cc {
class CompositorFrame;
class CopyOutputRequest;
@@ -37,6 +43,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