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_; |