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

Unified Diff: content/browser/gpu/browser_gpu_channel_host_factory.h

Issue 1117183006: Remove BrowserGpuChannelHostFactory usage of UnsafeGetMessageLoopForThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | content/browser/gpu/browser_gpu_channel_host_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/browser_gpu_channel_host_factory.h
diff --git a/content/browser/gpu/browser_gpu_channel_host_factory.h b/content/browser/gpu/browser_gpu_channel_host_factory.h
index 9cc0cd5c98b4f212082e3d23e06d66a5c56f9d1c..2810c06270a4a17406eb989704641f528a272643 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.h
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.h
@@ -32,8 +32,7 @@ class CONTENT_EXPORT BrowserGpuChannelHostFactory
static uint32 GetImageTextureTarget();
// Overridden from GpuChannelHostFactory:
- bool IsMainThread() override;
- base::MessageLoop* GetMainLoop() override;
+ scoped_refptr<base::SingleThreadTaskRunner> GetMainTaskRunner() override;
scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() override;
scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) override;
CreateCommandBufferResult CreateViewCommandBuffer(
@@ -93,6 +92,7 @@ class CONTENT_EXPORT BrowserGpuChannelHostFactory
const gfx::GpuMemoryBufferHandle& handle);
const int gpu_client_id_;
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
scoped_ptr<base::WaitableEvent> shutdown_event_;
scoped_refptr<GpuChannelHost> gpu_channel_;
scoped_ptr<BrowserGpuMemoryBufferManager> gpu_memory_buffer_manager_;
« no previous file with comments | « no previous file | content/browser/gpu/browser_gpu_channel_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698