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

Unified Diff: cc/test/pixel_test_delegating_output_surface.cc

Issue 2098953003: Make cc::CompositorFrames movable [Part 2 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed exo unittests 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/surfaces_pixeltest.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/pixel_test_delegating_output_surface.cc
diff --git a/cc/test/pixel_test_delegating_output_surface.cc b/cc/test/pixel_test_delegating_output_surface.cc
index fa1b83c208af708a55ed7ec4e257dd4c0a3a07d4..cc63498853a3a2064c18abbf332f94e9137ac953 100644
--- a/cc/test/pixel_test_delegating_output_surface.cc
+++ b/cc/test/pixel_test_delegating_output_surface.cc
@@ -135,10 +135,8 @@ void PixelTestDelegatingOutputSurface::SwapBuffers(CompositorFrame frame) {
frame.delegated_frame_data->render_pass_list.back()->output_rect.size();
display_->Resize(frame_size);
- std::unique_ptr<CompositorFrame> frame_copy(new CompositorFrame);
- *frame_copy = std::move(frame);
surface_factory_->SubmitCompositorFrame(
- delegated_surface_id_, std::move(frame_copy),
+ delegated_surface_id_, std::move(frame),
base::Bind(&PixelTestDelegatingOutputSurface::DrawCallback,
weak_ptrs_.GetWeakPtr()));
@@ -158,7 +156,8 @@ void PixelTestDelegatingOutputSurface::DrawCallback(SurfaceDrawStatus) {
void PixelTestDelegatingOutputSurface::ForceReclaimResources() {
if (allow_force_reclaim_resources_ && !delegated_surface_id_.is_null()) {
- surface_factory_->SubmitCompositorFrame(delegated_surface_id_, nullptr,
+ surface_factory_->SubmitCompositorFrame(delegated_surface_id_,
+ CompositorFrame(),
SurfaceFactory::DrawCallback());
}
}
« no previous file with comments | « cc/surfaces/surfaces_pixeltest.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698