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

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

Issue 1231263003: Share SyncPointManager between ipc and in-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove forward decl/includes Created 5 years, 5 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 520a2668e2b8c0b4c7de8d6d02411737abe4a241..91ef7f61dc16e026256e2ffa49221ac450210eb9 100644
--- a/content/browser/android/in_process/synchronous_compositor_factory_impl.h
+++ b/content/browser/android/in_process/synchronous_compositor_factory_impl.h
@@ -12,6 +12,10 @@
#include "content/renderer/media/android/stream_texture_factory_synchronous_impl.h"
#include "gpu/command_buffer/service/in_process_command_buffer.h"
+namespace base {
+class Thread;
+}
+
namespace gpu {
class GLInProcessContext;
}
@@ -22,6 +26,8 @@ class WebGraphicsContext3DInProcessCommandBufferImpl;
namespace content {
+class InProcessChildThreadParams;
+
class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory {
public:
SynchronousCompositorFactoryImpl();
@@ -55,6 +61,8 @@ class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory {
void SetDeferredGpuService(
scoped_refptr<gpu::InProcessCommandBuffer::Service> service);
+ base::Thread* CreateInProcessGpuThread(
+ const InProcessChildThreadParams& params);
void SetRecordFullDocument(bool record_full_document);
void CompositorInitializedHardwareDraw();
void CompositorReleasedHardwareDraw();
@@ -66,10 +74,12 @@ class SynchronousCompositorFactoryImpl : public SynchronousCompositorFactory {
scoped_refptr<StreamTextureFactorySynchronousImpl::ContextProvider>
TryCreateStreamTextureFactory();
void RestoreContextOnMainThread();
+ scoped_refptr<gpu::InProcessCommandBuffer::Service> GpuThreadService();
SynchronousInputEventFilter synchronous_input_event_filter_;
- scoped_refptr<gpu::InProcessCommandBuffer::Service> service_;
+ scoped_refptr<gpu::InProcessCommandBuffer::Service> android_view_service_;
+ scoped_refptr<gpu::InProcessCommandBuffer::Service> gpu_thread_service_;
class VideoContextProvider;
scoped_refptr<VideoContextProvider> video_context_provider_;
« no previous file with comments | « content/browser/android/in_process/DEPS ('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