diff options
author | alexst <alexst@chromium.org> | 2015-05-07 11:59:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-07 19:00:21 +0000 |
commit | 8a6989b532d692f319d617745de0651d67c6c990 (patch) | |
tree | 22e6d20c9aa82fcf870446b35b5cfdc78a3fd481 | |
parent | c4f1a80c2282e03732d60db480c0a37ed68a9195 (diff) | |
download | chromium_src-8a6989b532d692f319d617745de0651d67c6c990.zip chromium_src-8a6989b532d692f319d617745de0651d67c6c990.tar.gz chromium_src-8a6989b532d692f319d617745de0651d67c6c990.tar.bz2 |
OnSwapBuffersComplete should always be called on UI thread.
There is no longer a possibility for OnSwapBuffersCompleted to be called on multiple threads, cleanup the code site that handled that case.
Review URL: https://codereview.chromium.org/1137433002
Cr-Commit-Position: refs/heads/master@{#328808}
-rw-r--r-- | content/browser/compositor/gpu_browser_compositor_output_surface.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/content/browser/compositor/gpu_browser_compositor_output_surface.cc b/content/browser/compositor/gpu_browser_compositor_output_surface.cc index 09a8b72..114a84f 100644 --- a/content/browser/compositor/gpu_browser_compositor_output_surface.cc +++ b/content/browser/compositor/gpu_browser_compositor_output_surface.cc @@ -99,14 +99,7 @@ void GpuBrowserCompositorOutputSurface::OnSwapBuffersCompleted( // it has been drawn, see OnSurfaceDisplayed(); NOTREACHED(); #else - if (BrowserThread::CurrentlyOn(BrowserThread::UI)) { - RenderWidgetHostImpl::CompositorFrameDrawn(latency_info); - } else { - BrowserThread::PostTask( - BrowserThread::UI, - FROM_HERE, - base::Bind(&RenderWidgetHostImpl::CompositorFrameDrawn, latency_info)); - } + RenderWidgetHostImpl::CompositorFrameDrawn(latency_info); OnSwapBuffersComplete(); #endif } |