Index: content/browser/compositor/offscreen_browser_compositor_output_surface.cc |
diff --git a/content/browser/compositor/offscreen_browser_compositor_output_surface.cc b/content/browser/compositor/offscreen_browser_compositor_output_surface.cc |
index 491483c04ac6f9f5e5b5ebbf633466e0cbfff6b2..5fe394a4aa38a8ab3553bf5de9ab7c4999a5ed61 100644 |
--- a/content/browser/compositor/offscreen_browser_compositor_output_surface.cc |
+++ b/content/browser/compositor/offscreen_browser_compositor_output_surface.cc |
@@ -8,9 +8,8 @@ |
#include "base/logging.h" |
#include "build/build_config.h" |
-#include "cc/output/compositor_frame.h" |
-#include "cc/output/gl_frame_data.h" |
#include "cc/output/output_surface_client.h" |
+#include "cc/output/output_surface_frame.h" |
#include "cc/resources/resource_provider.h" |
#include "components/display_compositor/compositor_overlay_candidate_validator.h" |
#include "content/browser/compositor/reflector_impl.h" |
@@ -22,9 +21,6 @@ |
#include "third_party/khronos/GLES2/gl2.h" |
#include "third_party/khronos/GLES2/gl2ext.h" |
-using cc::CompositorFrame; |
-using cc::GLFrameData; |
-using cc::ResourceProvider; |
using gpu::gles2::GLES2Interface; |
namespace content { |
@@ -134,13 +130,12 @@ void OffscreenBrowserCompositorOutputSurface::BindFramebuffer() { |
} |
void OffscreenBrowserCompositorOutputSurface::SwapBuffers( |
- cc::CompositorFrame frame) { |
+ cc::OutputSurfaceFrame frame) { |
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_->OnSourceSwapBuffers(); |
else |
- reflector_->OnSourcePostSubBuffer(frame.gl_frame_data->sub_buffer_rect); |
+ reflector_->OnSourcePostSubBuffer(frame.sub_buffer_rect); |
} |
// TODO(oshima): sync with the reflector's SwapBuffersComplete |