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

Unified Diff: content/browser/android/in_process/synchronous_compositor_factory_impl.cc

Issue 251343002: Remove offscreen compositor contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
Index: content/browser/android/in_process/synchronous_compositor_factory_impl.cc
diff --git a/content/browser/android/in_process/synchronous_compositor_factory_impl.cc b/content/browser/android/in_process/synchronous_compositor_factory_impl.cc
index 9521ecb727d2b7b70865f3031bb7a4a49db57fb0..3e5df8b7d6cf21cdfe635ab4ca44c6826ac24a63 100644
--- a/content/browser/android/in_process/synchronous_compositor_factory_impl.cc
+++ b/content/browser/android/in_process/synchronous_compositor_factory_impl.cc
@@ -152,15 +152,11 @@ scoped_refptr<ContextProviderWebContext> SynchronousCompositorFactoryImpl::
return offscreen_context_for_main_thread_;
}
-// This is called on both renderer main thread (offscreen context creation
-// path shared between cross-process and in-process platforms) and renderer
-// compositor impl thread (InitializeHwDraw) in order to support Android
-// WebView synchronously enable and disable hardware mode multiple times in
-// the same task. This is ok because in-process WGC3D creation may happen on
-// any thread and is lightweight.
+// This is called on the renderer compositor impl thread (InitializeHwDraw) in
+// order to support Android WebView synchronously enable and disable hardware
+// mode multiple times in the same task.
scoped_refptr<cc::ContextProvider> SynchronousCompositorFactoryImpl::
GetOffscreenContextProviderForCompositorThread() {
- base::AutoLock lock(offscreen_context_for_compositor_thread_lock_);
DCHECK(service_);
bool failed = false;
if (!offscreen_context_for_compositor_thread_.get() ||

Powered by Google App Engine
This is Rietveld 408576698