Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1038)

Unified Diff: content/browser/compositor/gpu_browser_compositor_output_surface.h

Issue 2626413002: Route D3D VSync signal to Compositor (Closed)
Patch Set: Limit GPU VSync to Win8+ Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 c250526416deafaf5638e3cbc9b11570757d1d98..b547c3c90efadb503b4e26fa274ce50a8ace3b49 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,
@@ -76,6 +77,9 @@ class GpuBrowserCompositorOutputSurface
unsigned GetOverlayTextureId() const override;
bool SurfaceIsSuspendForRecycle() const override;
+ // GpuVSyncControl
danakj 2017/02/16 15:56:02 Comments are sentences. "GpuVSyncControl implement
stanisc 2017/02/16 21:43:18 Done.
+ void SetNeedsVSync(bool needs_vsync) override;
+
protected:
gpu::CommandBufferProxyImpl* GetCommandBufferProxy();

Powered by Google App Engine
This is Rietveld 408576698