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

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
Index: cc/surfaces/surface.h
diff --git a/cc/surfaces/surface.h b/cc/surfaces/surface.h
index c42292e3b04655cf1f97498df3ab5acfcfd5f397..2fa95fa606ea916718b49206f395711378132290 100644
--- a/cc/surfaces/surface.h
+++ b/cc/surfaces/surface.h
@@ -132,6 +132,11 @@ class CC_SURFACES_EXPORT Surface {
void UnrefFrameResources(const CompositorFrame& frame_data);
void ClearCopyRequests();
+ void TakeLatencyInfoFromPendingFrame(
+ std::vector<ui::LatencyInfo>* latency_info);
+ void TakeLatencyInfoFromFrame(CompositorFrame* frame,
jbauman 2017/03/01 22:11:08 Make this static.
Saman Sami 2017/03/01 22:35:05 Done.
+ std::vector<ui::LatencyInfo>* latency_info);
+
SurfaceId surface_id_;
SurfaceId previous_frame_surface_id_;
base::WeakPtr<SurfaceFactory> factory_;

Powered by Google App Engine
This is Rietveld 408576698