Index: ui/compositor/test/in_process_context_factory.cc |
diff --git a/ui/compositor/test/in_process_context_factory.cc b/ui/compositor/test/in_process_context_factory.cc |
index f396c941be4de6ee578e8284706b6b662640784a..f923cd385d483e136a72e1643b86763f86ac8fda 100644 |
--- a/ui/compositor/test/in_process_context_factory.cc |
+++ b/ui/compositor/test/in_process_context_factory.cc |
@@ -65,15 +65,15 @@ class DirectOutputSurface : public cc::OutputSurface { |
return false; |
return true; |
} |
- void SwapBuffers(cc::CompositorFrame* frame) override { |
+ void SwapBuffers(cc::CompositorFrame frame) override { |
DCHECK(context_provider_.get()); |
- DCHECK(frame->gl_frame_data); |
- if (frame->gl_frame_data->sub_buffer_rect == |
- gfx::Rect(frame->gl_frame_data->size)) { |
+ DCHECK(frame.gl_frame_data); |
+ if (frame.gl_frame_data->sub_buffer_rect == |
+ gfx::Rect(frame.gl_frame_data->size)) { |
context_provider_->ContextSupport()->Swap(); |
} else { |
context_provider_->ContextSupport()->PartialSwapBuffers( |
- frame->gl_frame_data->sub_buffer_rect); |
+ frame.gl_frame_data->sub_buffer_rect); |
} |
gpu::gles2::GLES2Interface* gl = context_provider_->ContextGL(); |
const uint64_t fence_sync = gl->InsertFenceSyncCHROMIUM(); |