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

Unified Diff: cc/surfaces/surface.h

Issue 1945533002: Add way to mark other Surface a predecessor for a Surface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | 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 957d9f8c0b5adbe7c6d0f6439b9785084604ff45..e6aeb84f7f5659f0b466e2fcc0f1626428c19aa0 100644
--- a/cc/surfaces/surface.h
+++ b/cc/surfaces/surface.h
@@ -44,6 +44,11 @@ class CC_SURFACES_EXPORT Surface {
~Surface();
SurfaceId surface_id() const { return surface_id_; }
+ SurfaceId previous_frame_surface_id() const {
+ return previous_frame_surface_id_;
+ }
+
+ void SetPreviousFrameSurface(Surface* surface);
void QueueFrame(std::unique_ptr<CompositorFrame> frame,
const DrawCallback& draw_callback);
@@ -88,6 +93,7 @@ class CC_SURFACES_EXPORT Surface {
void ClearCopyRequests();
SurfaceId surface_id_;
+ SurfaceId previous_frame_surface_id_;
base::WeakPtr<SurfaceFactory> factory_;
// TODO(jamesr): Support multiple frames in flight.
std::unique_ptr<CompositorFrame> current_frame_;
« no previous file with comments | « no previous file | cc/surfaces/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698