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 a006f1efba1591d4b559b214a4975af22dbc52b9..273a1cee09fbeddf41b158f49fa8e6f6df35d4a7 100644 |
--- a/content/browser/gpu/browser_gpu_channel_host_factory.cc |
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.cc |
@@ -376,10 +376,10 @@ void BrowserGpuChannelHostFactory::GpuChannelEstablished() { |
} |
scoped_ptr<gfx::GpuMemoryBuffer> |
- BrowserGpuChannelHostFactory::AllocateGpuMemoryBuffer( |
- size_t width, |
- size_t height, |
- unsigned internalformat) { |
+BrowserGpuChannelHostFactory::AllocateGpuMemoryBuffer(size_t width, |
+ size_t height, |
+ unsigned internalformat, |
+ unsigned usage) { |
if (!GpuMemoryBufferImpl::IsFormatValid(internalformat)) |
reveman
2014/05/01 15:15:55
Please add a IsUsageValid check here too.
|
return scoped_ptr<gfx::GpuMemoryBuffer>(); |