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

Unified Diff: content/renderer/render_view_impl.cc

Issue 12079046: Revert 178747 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1397/src/
Patch Set: Created 7 years, 11 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 | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
===================================================================
--- content/renderer/render_view_impl.cc (revision 179369)
+++ content/renderer/render_view_impl.cc (working copy)
@@ -5936,7 +5936,7 @@
bool RenderViewImpl::SupportsAsynchronousSwapBuffers() {
// Contexts using the command buffer support asynchronous swapbuffers.
// See RenderViewImpl::createOutputSurface().
- if (RenderThreadImpl::current()->compositor_thread() ||
+ if (WebWidgetHandlesCompositorScheduling() ||
CommandLine::ForCurrentProcess()->HasSwitch(switches::kInProcessWebGL))
return false;
@@ -6504,6 +6504,10 @@
main_frame->enableViewSourceMode(true);
}
+bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
+ return !!RenderThreadImpl::current()->compositor_thread();
+}
+
void RenderViewImpl::OnJavaBridgeInit() {
DCHECK(!java_bridge_dispatcher_);
#if defined(ENABLE_JAVA_BRIDGE)
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698