OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/compositor/gpu_surfaceless_browser_compositor_output_s
urface.h" | 5 #include "content/browser/compositor/gpu_surfaceless_browser_compositor_output_s
urface.h" |
6 | 6 |
7 #include "cc/output/compositor_frame.h" | 7 #include "cc/output/compositor_frame.h" |
8 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida
tor.h" | 8 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida
tor.h" |
9 #include "content/browser/compositor/buffer_queue.h" | 9 #include "content/browser/compositor/buffer_queue.h" |
10 #include "content/browser/compositor/reflector_impl.h" | 10 #include "content/browser/compositor/reflector_impl.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 } | 87 } |
88 | 88 |
89 void GpuSurfacelessBrowserCompositorOutputSurface::Reshape( | 89 void GpuSurfacelessBrowserCompositorOutputSurface::Reshape( |
90 const gfx::Size& size, | 90 const gfx::Size& size, |
91 float scale_factor) { | 91 float scale_factor) { |
92 GpuBrowserCompositorOutputSurface::Reshape(size, scale_factor); | 92 GpuBrowserCompositorOutputSurface::Reshape(size, scale_factor); |
93 DCHECK(output_surface_); | 93 DCHECK(output_surface_); |
94 output_surface_->Reshape(SurfaceSize(), scale_factor); | 94 output_surface_->Reshape(SurfaceSize(), scale_factor); |
95 } | 95 } |
96 | 96 |
| 97 void GpuSurfacelessBrowserCompositorOutputSurface::RecreateBuffers() { |
| 98 output_surface_->RecreateBuffers(); |
| 99 } |
| 100 |
97 } // namespace content | 101 } // namespace content |
OLD | NEW |