summaryrefslogtreecommitdiffstats
path: root/cc/output
diff options
context:
space:
mode:
authorccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-12 11:34:45 +0000
committerccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-12 11:34:45 +0000
commit7e7593b03f16849e4145a3cf897b79e0f322cac2 (patch)
tree54b4baa513ce4e94059ed7ee345a22b6fd79c3b6 /cc/output
parentf58eb14580c35a4094168f24a695a3c2df38bdd4 (diff)
downloadchromium_src-7e7593b03f16849e4145a3cf897b79e0f322cac2.zip
chromium_src-7e7593b03f16849e4145a3cf897b79e0f322cac2.tar.gz
chromium_src-7e7593b03f16849e4145a3cf897b79e0f322cac2.tar.bz2
Mac ÜC: Enable back-pressure for the browser compositor
Delay acknowledging the cc::OutputSurface's swap completion until the surface is displayed. BUG=314190 Review URL: https://codereview.chromium.org/334593002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276629 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/output')
-rw-r--r--cc/output/output_surface.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index f992e97..98a4830 100644
--- a/cc/output/output_surface.h
+++ b/cc/output/output_surface.h
@@ -125,6 +125,7 @@ class CC_EXPORT OutputSurface {
// passed in (though it will not take ownership of the CompositorFrame
// itself).
virtual void SwapBuffers(CompositorFrame* frame);
+ virtual void OnSwapBuffersComplete();
// Notifies frame-rate smoothness preference. If true, all non-critical
// processing should be stopped, or lowered in priority.
@@ -182,8 +183,6 @@ class CC_EXPORT OutputSurface {
void SetMemoryPolicy(const ManagedMemoryPolicy& policy);
void UpdateAndMeasureGpuLatency();
- void OnSwapBuffersComplete();
-
bool external_stencil_test_enabled_;
base::WeakPtrFactory<OutputSurface> weak_ptr_factory_;