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

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

Issue 600693002: content: Cleanup GpuMemoryBufferImpl destruction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove scoped_refptr<> from sender param of DeletedGpuMemoryBuffer Created 6 years, 3 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/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 289805036f7ecddfaa46eceff0415e89476c0af1..29adc69ad843421354be30f50f2cf30bd5070cd6 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.cc
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.cc
@@ -413,16 +413,6 @@ BrowserGpuChannelHostFactory::AllocateGpuMemoryBuffer(size_t width,
return request.result.Pass();
}
-void BrowserGpuChannelHostFactory::DeleteGpuMemoryBuffer(
- scoped_ptr<gfx::GpuMemoryBuffer> buffer) {
- DCHECK(!BrowserThread::CurrentlyOn(BrowserThread::IO));
-
- GetIOLoopProxy()->PostTask(
- FROM_HERE,
- base::Bind(&BrowserGpuChannelHostFactory::DeleteGpuMemoryBufferOnIO,
- base::Passed(&buffer)));
-}
-
// static
void BrowserGpuChannelHostFactory::AddFilterOnIO(
int host_id,
@@ -477,11 +467,6 @@ void BrowserGpuChannelHostFactory::AllocateGpuMemoryBufferOnIO(
}
// static
-void BrowserGpuChannelHostFactory::DeleteGpuMemoryBufferOnIO(
- scoped_ptr<gfx::GpuMemoryBuffer> buffer) {
-}
-
-// static
void BrowserGpuChannelHostFactory::OnGpuMemoryBufferCreated(
AllocateGpuMemoryBufferRequest* request,
scoped_ptr<GpuMemoryBufferImpl> buffer) {
« no previous file with comments | « content/browser/gpu/browser_gpu_channel_host_factory.h ('k') | content/common/gpu/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698