Chromium Code Reviews| Index: content/browser/compositor/gpu_browser_compositor_output_surface.h |
| diff --git a/content/browser/compositor/gpu_browser_compositor_output_surface.h b/content/browser/compositor/gpu_browser_compositor_output_surface.h |
| index 6bf62dbce91b5a28f09e27b32cecf07801845f6c..df5d28ca427fe0880c25d34a6be21c26c43b6116 100644 |
| --- a/content/browser/compositor/gpu_browser_compositor_output_surface.h |
| +++ b/content/browser/compositor/gpu_browser_compositor_output_surface.h |
| @@ -11,6 +11,7 @@ |
| #include "base/memory/weak_ptr.h" |
| #include "build/build_config.h" |
| #include "content/browser/compositor/browser_compositor_output_surface.h" |
| +#include "content/browser/compositor/gpu_vsync_begin_frame_source.h" |
| #include "ui/gfx/swap_result.h" |
| namespace display_compositor { |
| @@ -33,8 +34,8 @@ class ReflectorTexture; |
| // Adapts a WebGraphicsContext3DCommandBufferImpl into a |
| // cc::OutputSurface that also handles vsync parameter updates |
| // arriving from the GPU process. |
| -class GpuBrowserCompositorOutputSurface |
| - : public BrowserCompositorOutputSurface { |
| +class GpuBrowserCompositorOutputSurface : public BrowserCompositorOutputSurface, |
| + public GpuVSyncControl { |
| public: |
| GpuBrowserCompositorOutputSurface( |
| scoped_refptr<ui::ContextProviderCommandBuffer> context, |
| @@ -75,6 +76,11 @@ class GpuBrowserCompositorOutputSurface |
| unsigned GetOverlayTextureId() const override; |
| bool SurfaceIsSuspendForRecycle() const override; |
| + GpuVSyncControl* GetVSyncControl() override; |
|
enne (OOO)
2017/01/13 21:14:11
I don't know that this really needs to be part of
stanisc
2017/01/14 00:32:20
This was my attempt to simplify the logic in the f
stanisc
2017/01/24 21:23:25
OK, I've removed this function.
|
| + |
| + // GpuVSyncControl |
| + void EnableVSync(bool enabled) override; |
|
enne (OOO)
2017/01/13 21:14:11
Similarly, EnableVSync doesn't need to be virtual
stanisc
2017/01/14 00:32:20
Well, I guess if GpuBrowserCompositorOutputSurface
stanisc
2017/01/24 21:23:25
I've kept this as virtual for now, mostly for the
|
| + |
| protected: |
| gpu::CommandBufferProxyImpl* GetCommandBufferProxy(); |