| 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)
|
|
|