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

Unified Diff: cc/output_surface.h

Issue 11833009: Provide a vsync notification to the renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 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
« no previous file with comments | « cc/layer_tree_host_unittest.cc ('k') | cc/output_surface_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output_surface.h
diff --git a/cc/output_surface.h b/cc/output_surface.h
index 4bc31802b23153e7bbfe80aa94660c2d56d43ec7..98f636a53a53ab3be80a4ca9adf0ec7694c234bd 100644
--- a/cc/output_surface.h
+++ b/cc/output_surface.h
@@ -61,6 +61,11 @@ class CC_EXPORT OutputSurface : public WebKit::WebCompositorOutputSurface {
// Notifies frame-rate smoothness preference. If true, all non-critical
// 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) {}
};
} // namespace cc
« no previous file with comments | « cc/layer_tree_host_unittest.cc ('k') | cc/output_surface_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698