| Index: cc/surfaces/surface.h
|
| diff --git a/cc/surfaces/surface.h b/cc/surfaces/surface.h
|
| index c3226aaa069e2eefa526fcc6e98af20c3b33ce33..7c44be4b51c1b97909b9875419aa3df047396870 100644
|
| --- a/cc/surfaces/surface.h
|
| +++ b/cc/surfaces/surface.h
|
| @@ -54,18 +54,16 @@
|
| return gpu_memory_buffer_client_id_;
|
| }
|
|
|
| - void QueueFrame(CompositorFrame frame, const DrawCallback& draw_callback);
|
| + void QueueFrame(std::unique_ptr<CompositorFrame> frame,
|
| + const DrawCallback& draw_callback);
|
| void RequestCopyOfOutput(std::unique_ptr<CopyOutputRequest> copy_request);
|
| // Adds each CopyOutputRequest in the current frame to copy_requests. The
|
| // caller takes ownership of them.
|
| void TakeCopyOutputRequests(
|
| std::multimap<RenderPassId, std::unique_ptr<CopyOutputRequest>>*
|
| copy_requests);
|
| -
|
| // Returns the most recent frame that is eligible to be rendered.
|
| - // If the CompositorFrame's DelegateFrameData is null then there is
|
| - // no eligible frame.
|
| - const CompositorFrame& GetEligibleFrame();
|
| + const CompositorFrame* GetEligibleFrame();
|
|
|
| // Returns a number that increments by 1 every time a new frame is enqueued.
|
| int frame_index() const { return frame_index_; }
|
| @@ -104,7 +102,7 @@
|
| int gpu_memory_buffer_client_id_ = -1;
|
| base::WeakPtr<SurfaceFactory> factory_;
|
| // TODO(jamesr): Support multiple frames in flight.
|
| - CompositorFrame current_frame_;
|
| + std::unique_ptr<CompositorFrame> current_frame_;
|
| int frame_index_;
|
| bool destroyed_;
|
| std::vector<SurfaceSequence> destruction_dependencies_;
|
|
|