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 6e970a0cfd3730326b00e9cb52070df9d5692d88..e958e8337c30a49ba9652b47eb40e872adf27ee3 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, |
@@ -77,6 +78,9 @@ class GpuBrowserCompositorOutputSurface |
unsigned GetOverlayTextureId() const override; |
bool SurfaceIsSuspendForRecycle() const override; |
+ // GpuVSyncControl |
+ void SetNeedsVSync(bool needs_vsync) override; |
+ |
protected: |
gpu::CommandBufferProxyImpl* GetCommandBufferProxy(); |