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

Unified Diff: cc/surfaces/surface.h

Issue 2721763002: SetPreviousFrameSurface should copy latency info to the new surface (Closed)
Patch Set: c Created 3 years, 10 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/compositor_frame_sink_support_unittest.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 c42292e3b04655cf1f97498df3ab5acfcfd5f397..f35740ab3f0ea3ae2b1141129ca50c74b8136075 100644
--- a/cc/surfaces/surface.h
+++ b/cc/surfaces/surface.h
@@ -132,6 +132,12 @@ class CC_SURFACES_EXPORT Surface {
void UnrefFrameResources(const CompositorFrame& frame_data);
void ClearCopyRequests();
+ void TakeLatencyInfoFromPendingFrame(
+ std::vector<ui::LatencyInfo>* latency_info);
+ static void TakeLatencyInfoFromFrame(
+ CompositorFrame* frame,
+ std::vector<ui::LatencyInfo>* latency_info);
+
SurfaceId surface_id_;
SurfaceId previous_frame_surface_id_;
base::WeakPtr<SurfaceFactory> factory_;
« no previous file with comments | « cc/surfaces/compositor_frame_sink_support_unittest.cc ('k') | cc/surfaces/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698