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

Unified Diff: cc/output/output_surface.h

Issue 12674030: cc: Hook vsync time source to output surface (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Review tweaks. Created 7 years, 9 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
« no previous file with comments | « no previous file | cc/output/output_surface_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.h
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index ce425eda0c61712edc6510f484467d7bea58e75a..bb473e24946939e22751f7d40543525247d700ce 100644
--- a/cc/output/output_surface.h
+++ b/cc/output/output_surface.h
@@ -91,6 +91,11 @@ class CC_EXPORT OutputSurface {
// processing should be stopped, or lowered in priority.
virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {}
+ // Requests a vsync notification from the output surface. The notification
+ // will be delivered by calling OutputSurfaceClient::DidVSync for all future
+ // vsync events until the callback is disabled.
+ virtual void EnableVSyncNotification(bool enable_vsync) {}
+
protected:
OutputSurfaceClient* client_;
struct cc::OutputSurface::Capabilities capabilities_;
« no previous file with comments | « no previous file | cc/output/output_surface_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698