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

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

Issue 251343002: Remove offscreen compositor contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-offscreencontext: include 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
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | content/browser/android/in_process/synchronous_compositor_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/in_process/synchronous_compositor_factory_impl.h
diff --git a/content/browser/android/in_process/synchronous_compositor_factory_impl.h b/content/browser/android/in_process/synchronous_compositor_factory_impl.h
index 6ea232825e1aad5a19022d1b1f0d8f12d01bdb97..cafd6411a95a8fbd1e8f61a67ad992965b3462d8 100644
--- a/content/browser/android/in_process/synchronous_compositor_factory_impl.h
+++ b/content/browser/android/in_process/synchronous_compositor_factory_impl.h
@@ -41,19 +41,17 @@ class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory {
virtual InputHandlerManagerClient* GetInputHandlerManagerClient() OVERRIDE;
virtual scoped_refptr<webkit::gpu::ContextProviderWebContext>
GetSharedOffscreenContextProviderForMainThread() OVERRIDE;
- // 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.
- virtual scoped_refptr<cc::ContextProvider>
- GetOffscreenContextProviderForCompositorThread() OVERRIDE;
virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory(
int view_id) OVERRIDE;
virtual blink::WebGraphicsContext3D* CreateOffscreenGraphicsContext3D(
const blink::WebGraphicsContext3D::Attributes& attributes) OVERRIDE;
+ // 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>
+ GetOffscreenContextProviderForCompositorThread();
+
SynchronousInputEventFilter* synchronous_input_event_filter() {
return &synchronous_input_event_filter_;
}
@@ -74,9 +72,6 @@ class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory {
SynchronousInputEventFilter synchronous_input_event_filter_;
- // Only guards construction and destruction of
- // |offscreen_context_for_compositor_thread_|, not usage.
- base::Lock offscreen_context_for_compositor_thread_lock_;
scoped_refptr<webkit::gpu::ContextProviderWebContext>
offscreen_context_for_main_thread_;
// This is a pointer to the context owned by
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | content/browser/android/in_process/synchronous_compositor_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698