Index: content/browser/gpu/browser_gpu_channel_host_factory.cc |
diff --git a/content/browser/gpu/browser_gpu_channel_host_factory.cc b/content/browser/gpu/browser_gpu_channel_host_factory.cc |
index 11bbe83fc2f56a68f95de6d33a75ce857aa8fa76..205542cdc81e918839841fbbeb55d99e16c6cadd 100644 |
--- a/content/browser/gpu/browser_gpu_channel_host_factory.cc |
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.cc |
@@ -305,8 +305,8 @@ bool BrowserGpuChannelHostFactory::IsMainThread() { |
return BrowserThread::CurrentlyOn(BrowserThread::UI); |
} |
-scoped_refptr<base::MessageLoopProxy> |
-BrowserGpuChannelHostFactory::GetIOLoopProxy() { |
+scoped_refptr<base::SingleThreadTaskRunner> |
+BrowserGpuChannelHostFactory::GetIOThreadTaskRunner() { |
return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); |
} |
@@ -353,12 +353,10 @@ CreateCommandBufferResult BrowserGpuChannelHostFactory::CreateViewCommandBuffer( |
const GPUCreateCommandBufferConfig& init_params, |
int32 route_id) { |
CreateRequest request(route_id); |
- GetIOLoopProxy()->PostTask(FROM_HERE, base::Bind( |
- &BrowserGpuChannelHostFactory::CreateViewCommandBufferOnIO, |
- base::Unretained(this), |
- &request, |
- surface_id, |
- init_params)); |
+ GetIOThreadTaskRunner()->PostTask( |
+ FROM_HERE, |
+ base::Bind(&BrowserGpuChannelHostFactory::CreateViewCommandBufferOnIO, |
+ base::Unretained(this), &request, surface_id, init_params)); |
// TODO(vadimt): Remove ScopedTracker below once crbug.com/125248 is fixed. |
tracked_objects::ScopedTracker tracking_profile( |
FROM_HERE_WITH_EXPLICIT_FUNCTION( |