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 532993002: work-in-progress patch to fix context lost black video (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: block on compositor Created 6 years, 3 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.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 42d04d36c8583f00e6d620defddbb216885d1247..73044bb792c20264d82e26140d7f6b12283a99d4 100644
--- a/content/browser/android/in_process/synchronous_compositor_factory_impl.h
+++ b/content/browser/android/in_process/synchronous_compositor_factory_impl.h
@@ -65,12 +65,14 @@ class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory {
bool CanCreateMainThreadContext();
scoped_refptr<StreamTextureFactorySynchronousImpl::ContextProvider>
TryCreateStreamTextureFactory();
+ void RestoreContextOnMainThread();
SynchronousInputEventFilter synchronous_input_event_filter_;
scoped_refptr<gpu::InProcessCommandBuffer::Service> service_;
- scoped_refptr<StreamTextureFactorySynchronousImpl::ContextProvider>
- video_context_provider_;
+
+ class VideoContextProvider;
+ scoped_refptr<VideoContextProvider> video_context_provider_;
bool record_full_layer_;
@@ -78,6 +80,7 @@ class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory {
// read on renderer main thread.
base::Lock num_hardware_compositor_lock_;
unsigned int num_hardware_compositors_;
+ scoped_refptr<base::MessageLoopProxy> main_thread_proxy_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698