| Index: content/browser/compositor/gpu_browser_compositor_output_surface.cc
|
| diff --git a/content/browser/compositor/gpu_browser_compositor_output_surface.cc b/content/browser/compositor/gpu_browser_compositor_output_surface.cc
|
| index b8e06e524ff1d9f3de1ac14db1bb6c3d48098138..84cee90f3eaecc64678253a3ec6bd86f2add0613 100644
|
| --- a/content/browser/compositor/gpu_browser_compositor_output_surface.cc
|
| +++ b/content/browser/compositor/gpu_browser_compositor_output_surface.cc
|
| @@ -79,30 +79,29 @@ void GpuBrowserCompositorOutputSurface::OnReflectorChanged() {
|
| }
|
| }
|
|
|
| -void GpuBrowserCompositorOutputSurface::SwapBuffers(
|
| - cc::CompositorFrame* frame) {
|
| - DCHECK(frame->gl_frame_data);
|
| +void GpuBrowserCompositorOutputSurface::SwapBuffers(cc::CompositorFrame frame) {
|
| + DCHECK(frame.gl_frame_data);
|
|
|
| - GetCommandBufferProxy()->SetLatencyInfo(frame->metadata.latency_info);
|
| + GetCommandBufferProxy()->SetLatencyInfo(frame.metadata.latency_info);
|
|
|
| if (reflector_) {
|
| - if (frame->gl_frame_data->sub_buffer_rect ==
|
| - gfx::Rect(frame->gl_frame_data->size)) {
|
| + if (frame.gl_frame_data->sub_buffer_rect ==
|
| + gfx::Rect(frame.gl_frame_data->size)) {
|
| reflector_texture_->CopyTextureFullImage(SurfaceSize());
|
| reflector_->OnSourceSwapBuffers();
|
| } else {
|
| - const gfx::Rect& rect = frame->gl_frame_data->sub_buffer_rect;
|
| + const gfx::Rect& rect = frame.gl_frame_data->sub_buffer_rect;
|
| reflector_texture_->CopyTextureSubImage(rect);
|
| reflector_->OnSourcePostSubBuffer(rect);
|
| }
|
| }
|
|
|
| - if (frame->gl_frame_data->sub_buffer_rect ==
|
| - gfx::Rect(frame->gl_frame_data->size)) {
|
| + 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);
|
| }
|
|
|
| client_->DidSwapBuffers();
|
|
|