| 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 f96520c800efcf8cd456c71ad358757cbc5c843c..156dd89576fb65f20bd11802b5f4663dc98b62ff 100644
|
| --- a/content/browser/gpu/browser_gpu_channel_host_factory.cc
|
| +++ b/content/browser/gpu/browser_gpu_channel_host_factory.cc
|
| @@ -297,72 +297,6 @@ CreateCommandBufferResult BrowserGpuChannelHostFactory::CreateViewCommandBuffer(
|
| return request.result;
|
| }
|
|
|
| -void BrowserGpuChannelHostFactory::CreateImageOnIO(
|
| - gfx::PluginWindowHandle window,
|
| - int32 image_id,
|
| - const CreateImageCallback& callback) {
|
| - GpuProcessHost* host = GpuProcessHost::FromID(gpu_host_id_);
|
| - if (!host) {
|
| - ImageCreatedOnIO(callback, gfx::Size());
|
| - return;
|
| - }
|
| -
|
| - host->CreateImage(
|
| - window,
|
| - gpu_client_id_,
|
| - image_id,
|
| - base::Bind(&BrowserGpuChannelHostFactory::ImageCreatedOnIO, callback));
|
| -}
|
| -
|
| -// static
|
| -void BrowserGpuChannelHostFactory::ImageCreatedOnIO(
|
| - const CreateImageCallback& callback, const gfx::Size size) {
|
| - BrowserThread::PostTask(
|
| - BrowserThread::UI,
|
| - FROM_HERE,
|
| - base::Bind(&BrowserGpuChannelHostFactory::OnImageCreated,
|
| - callback, size));
|
| -}
|
| -
|
| -// static
|
| -void BrowserGpuChannelHostFactory::OnImageCreated(
|
| - const CreateImageCallback& callback, const gfx::Size size) {
|
| - callback.Run(size);
|
| -}
|
| -
|
| -void BrowserGpuChannelHostFactory::CreateImage(
|
| - gfx::PluginWindowHandle window,
|
| - int32 image_id,
|
| - const CreateImageCallback& callback) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| - GetIOLoopProxy()->PostTask(FROM_HERE, base::Bind(
|
| - &BrowserGpuChannelHostFactory::CreateImageOnIO,
|
| - base::Unretained(this),
|
| - window,
|
| - image_id,
|
| - callback));
|
| -}
|
| -
|
| -void BrowserGpuChannelHostFactory::DeleteImageOnIO(
|
| - int32 image_id, int32 sync_point) {
|
| - GpuProcessHost* host = GpuProcessHost::FromID(gpu_host_id_);
|
| - if (!host) {
|
| - return;
|
| - }
|
| -
|
| - host->DeleteImage(gpu_client_id_, image_id, sync_point);
|
| -}
|
| -
|
| -void BrowserGpuChannelHostFactory::DeleteImage(
|
| - int32 image_id, int32 sync_point) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| - GetIOLoopProxy()->PostTask(FROM_HERE, base::Bind(
|
| - &BrowserGpuChannelHostFactory::DeleteImageOnIO,
|
| - base::Unretained(this),
|
| - image_id,
|
| - sync_point));
|
| -}
|
| -
|
| GpuChannelHost* BrowserGpuChannelHostFactory::EstablishGpuChannelSync(
|
| CauseForGpuLaunch cause_for_gpu_launch) {
|
| EstablishGpuChannel(cause_for_gpu_launch, base::Closure());
|
|
|