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

Unified Diff: cc/test/fake_output_surface.h

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nits Created 4 years, 6 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/surface_hittest_unittest.cc ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_output_surface.h
diff --git a/cc/test/fake_output_surface.h b/cc/test/fake_output_surface.h
index 7c5add8aed990676449550e6eb5a65e7a7e0144b..23f2123f54d4ac8cf47486fa62d1cf06839efd20 100644
--- a/cc/test/fake_output_surface.h
+++ b/cc/test/fake_output_surface.h
@@ -109,10 +109,10 @@ class FakeOutputSurface : public OutputSurface {
capabilities_.max_frames_pending = max;
}
- CompositorFrame& last_sent_frame() { return last_sent_frame_; }
+ CompositorFrame* last_sent_frame() { return last_sent_frame_.get(); }
size_t num_sent_frames() { return num_sent_frames_; }
- void SwapBuffers(CompositorFrame* frame) override;
+ void SwapBuffers(CompositorFrame frame) override;
OutputSurfaceClient* client() { return client_; }
bool BindToClient(OutputSurfaceClient* client) override;
@@ -170,7 +170,7 @@ class FakeOutputSurface : public OutputSurface {
bool delegated_rendering);
OutputSurfaceClient* client_ = nullptr;
- CompositorFrame last_sent_frame_;
+ std::unique_ptr<CompositorFrame> last_sent_frame_;
size_t num_sent_frames_ = 0;
bool has_external_stencil_test_ = false;
bool suspended_for_recycle_ = false;
« no previous file with comments | « cc/surfaces/surface_hittest_unittest.cc ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698