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

Unified Diff: cc/output/output_surface.cc

Issue 334593002: Mac ÜC: Enable back-pressure for the browser compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment, move methods Created 6 years, 6 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/output/output_surface.h ('k') | content/browser/compositor/browser_compositor_output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.cc
diff --git a/cc/output/output_surface.cc b/cc/output/output_surface.cc
index 46096d2e3094febd271e31a47c8668fbc1158ea2..8d84cfb054a6f120172f9bcae8f80a2e56fb709f 100644
--- a/cc/output/output_surface.cc
+++ b/cc/output/output_surface.cc
@@ -342,10 +342,14 @@ void OutputSurface::UpdateAndMeasureGpuLatency() {
void OutputSurface::PostSwapBuffersComplete() {
base::MessageLoop::current()->PostTask(
FROM_HERE,
- base::Bind(&OutputSurface::OnSwapBuffersComplete,
+ base::Bind(&OutputSurface::DoOnSwapBuffersComplete,
danakj 2014/06/12 01:16:51 Does virtual method in a posttask not do what you'
ccameron 2014/06/12 01:28:25 I was under the impression that a virtual method s
weak_ptr_factory_.GetWeakPtr()));
}
+void OutputSurface::DoOnSwapBuffersComplete() {
+ OnSwapBuffersComplete();
+}
+
// We don't post tasks bound to the client directly since they might run
// after the OutputSurface has been destroyed.
void OutputSurface::OnSwapBuffersComplete() {
« no previous file with comments | « cc/output/output_surface.h ('k') | content/browser/compositor/browser_compositor_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698