diff options
author | skyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-26 22:28:45 +0000 |
---|---|---|
committer | skyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-26 22:28:45 +0000 |
commit | 7ed4751b7860f7248ae7042465d3051867632c56 (patch) | |
tree | 4d2fc3b6525453b48461ceeae0611e21c4759648 /cc/output/output_surface.h | |
parent | 5b409ba35802ce8eba4b3056c5787cf73f81c745 (diff) | |
download | chromium_src-7ed4751b7860f7248ae7042465d3051867632c56.zip chromium_src-7ed4751b7860f7248ae7042465d3051867632c56.tar.gz chromium_src-7ed4751b7860f7248ae7042465d3051867632c56.tar.bz2 |
cc: Hook vsync time source to output surface
Let the output surface generate a vsync signal for the vsync time
source. This will be used to drive rendering based on a vsync
notification from the browser process.
BUG=149227
TEST=LayerTreeHostTestVSyncNotification
Review URL: https://chromiumcodereview.appspot.com/12674030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190780 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/output/output_surface.h')
-rw-r--r-- | cc/output/output_surface.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h index ce425ed..bb473e2 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_; |