From 9b9a6c37d7a4b19d64ce31e0d02213ec7770e068 Mon Sep 17 00:00:00 2001 From: "jamesr@chromium.org" Date: Sun, 4 Nov 2012 00:03:56 +0000 Subject: Disable threaded compositing when texture sharing is blacklisted When texture_sharing is blacklisted, we can't do readbacks from the browser process and thus hit the render process to do readbacks for the thumbnailer or the extensions getVisibleTab() API. This path is a bit buggy in threaded compositing mode, so disable the thread. BUG=158747 Review URL: https://chromiumcodereview.appspot.com/11361077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165866 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/compositor_bindings/web_compositor_support_impl.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'webkit/compositor_bindings') diff --git a/webkit/compositor_bindings/web_compositor_support_impl.cc b/webkit/compositor_bindings/web_compositor_support_impl.cc index 32a1840..6d237be 100644 --- a/webkit/compositor_bindings/web_compositor_support_impl.cc +++ b/webkit/compositor_bindings/web_compositor_support_impl.cc @@ -5,6 +5,7 @@ #include "config.h" #include "webkit/compositor_bindings/web_compositor_support_impl.h" +#include "base/debug/trace_event.h" #include "base/memory/scoped_ptr.h" #include "cc/settings.h" #include "webkit/compositor_bindings/web_animation_impl.h" @@ -56,6 +57,9 @@ WebCompositorSupportImpl::~WebCompositorSupportImpl() { } void WebCompositorSupportImpl::initialize(WebKit::WebThread* thread) { + if (thread) { + TRACE_EVENT_INSTANT0("test_gpu", "ThreadedCompositingInitialization"); + } WebCompositorImpl::initialize(thread); } -- cgit v1.1