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

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

Issue 2555173003: [Do not submit] D3DKMTWaitForVerticalBlankEvent VSync prototype (Closed)
Patch Set: Added command line switch and experiment support Created 3 years, 11 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/browser_compositor_output_surface.h
diff --git a/content/browser/compositor/browser_compositor_output_surface.h b/content/browser/compositor/browser_compositor_output_surface.h
index 8c8f56cac0d11ffea21a8139a87c82c69e2c536f..f1790f1d5705d8b8c808d86b721cdc7c55d591d5 100644
--- a/content/browser/compositor/browser_compositor_output_surface.h
+++ b/content/browser/compositor/browser_compositor_output_surface.h
@@ -25,6 +25,7 @@ enum class SwapResult;
namespace content {
class ReflectorImpl;
+class GpuVSyncControl;
class CONTENT_EXPORT BrowserCompositorOutputSurface
: public cc::OutputSurface {
@@ -44,6 +45,9 @@ class CONTENT_EXPORT BrowserCompositorOutputSurface
// Called when |reflector_| was updated.
virtual void OnReflectorChanged();
+ // Called to determine if this type of OutputSurface provides GPU VSync.
+ virtual GpuVSyncControl* GetVSyncControl();
+
#if defined(OS_MACOSX)
virtual void SetSurfaceSuspendedForRecycle(bool suspended) = 0;
#endif

Powered by Google App Engine
This is Rietveld 408576698