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

Unified Diff: content/renderer/render_thread_impl.h

Issue 2514923002: content: Use mus client-lib's gpu-service from renderers. (Closed)
Patch Set: . Created 4 years 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/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 6bc0ee997f10dabe9f5a7c2242c77e58d18d91bb..3b29f8ec1fbf595ba8fed051b322689962e87176 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -109,7 +109,6 @@ class AudioRendererMixerManager;
class BlobMessageFilter;
class BrowserPluginManager;
class CacheStorageDispatcher;
-class ChildGpuMemoryBufferManager;
class ChildSharedBitmapManager;
class CompositorForwardingMessageFilter;
class ContextProviderCommandBuffer;
@@ -156,7 +155,6 @@ class SynchronousCompositorFilter;
class CONTENT_EXPORT RenderThreadImpl
: public RenderThread,
public ChildThreadImpl,
- public gpu::GpuChannelHostFactory,
public blink::scheduler::RendererScheduler::RAILModeObserver,
public ChildMemoryCoordinatorDelegate,
public base::MemoryCoordinatorClient,
@@ -503,11 +501,7 @@ class CONTENT_EXPORT RenderThreadImpl
void RecordAction(const base::UserMetricsAction& action) override;
void RecordComputedAction(const std::string& action) override;
- // GpuChannelHostFactory implementation:
- bool IsMainThread() override;
- scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override;
- std::unique_ptr<base::SharedMemory> AllocateSharedMemory(
- size_t size) override;
+ bool IsMainThread();
// Purges memory and suspends the renderer.
void SuspendRenderer();
@@ -641,10 +635,6 @@ class CONTENT_EXPORT RenderThreadImpl
// The channel from the renderer process to the GPU process.
scoped_refptr<gpu::GpuChannelHost> gpu_channel_;
- // Cache of variables that are needed on the compositor thread by
- // GpuChannelHostFactory methods.
- scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_;
-
// The message loop of the renderer main thread.
// This message loop should be destructed before the RenderThreadImpl
// shuts down Blink.
@@ -656,8 +646,6 @@ class CONTENT_EXPORT RenderThreadImpl
// May be null if overridden by ContentRendererClient.
std::unique_ptr<blink::scheduler::WebThreadBase> compositor_thread_;
- std::unique_ptr<ChildGpuMemoryBufferManager> gpu_memory_buffer_manager_;
-
// Utility class to provide GPU functionalities to media.
// TODO(dcastagna): This should be just one scoped_ptr once
// http://crbug.com/580386 is fixed.
@@ -699,9 +687,7 @@ class CONTENT_EXPORT RenderThreadImpl
std::unique_ptr<MemoryObserver> memory_observer_;
std::unique_ptr<ChildMemoryCoordinatorImpl> memory_coordinator_;
-#if defined(USE_AURA)
std::unique_ptr<ui::Gpu> gpu_;
-#endif
scoped_refptr<base::SingleThreadTaskRunner>
main_thread_compositor_task_runner_;
« no previous file with comments | « content/renderer/media/renderer_gpu_video_accelerator_factories.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698