| 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 fec90677d6ebd49da7c18f60bcbae4f70c66deb9..62ecb33591d7e8a7e496015a975eaecdab312589 100644
|
| --- a/content/browser/compositor/gpu_browser_compositor_output_surface.cc
|
| +++ b/content/browser/compositor/gpu_browser_compositor_output_surface.cc
|
| @@ -7,8 +7,8 @@
|
| #include <utility>
|
|
|
| #include "build/build_config.h"
|
| -#include "cc/output/compositor_frame.h"
|
| #include "cc/output/output_surface_client.h"
|
| +#include "cc/output/output_surface_frame.h"
|
| #include "components/display_compositor/compositor_overlay_candidate_validator.h"
|
| #include "content/browser/compositor/reflector_impl.h"
|
| #include "content/browser/compositor/reflector_texture.h"
|
| @@ -85,29 +85,26 @@ void GpuBrowserCompositorOutputSurface::BindFramebuffer() {
|
| context_provider()->ContextGL()->BindFramebuffer(GL_FRAMEBUFFER, 0);
|
| }
|
|
|
| -void GpuBrowserCompositorOutputSurface::SwapBuffers(cc::CompositorFrame frame) {
|
| - DCHECK(frame.gl_frame_data);
|
| -
|
| - GetCommandBufferProxy()->SetLatencyInfo(frame.metadata.latency_info);
|
| +void GpuBrowserCompositorOutputSurface::SwapBuffers(
|
| + cc::OutputSurfaceFrame frame) {
|
| + GetCommandBufferProxy()->SetLatencyInfo(frame.latency_info);
|
|
|
| if (reflector_) {
|
| - if (frame.gl_frame_data->sub_buffer_rect ==
|
| - gfx::Rect(frame.gl_frame_data->size)) {
|
| + if (frame.sub_buffer_rect == gfx::Rect(frame.size)) {
|
| reflector_texture_->CopyTextureFullImage(SurfaceSize());
|
| reflector_->OnSourceSwapBuffers();
|
| } else {
|
| - const gfx::Rect& rect = frame.gl_frame_data->sub_buffer_rect;
|
| + const gfx::Rect& rect = frame.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.sub_buffer_rect == gfx::Rect(frame.size)) {
|
| context_provider_->ContextSupport()->Swap();
|
| } else {
|
| context_provider_->ContextSupport()->PartialSwapBuffers(
|
| - frame.gl_frame_data->sub_buffer_rect);
|
| + frame.sub_buffer_rect);
|
| }
|
| }
|
|
|
|
|