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

Unified Diff: content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc

Issue 793693003: Tile Compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/common/gpu/gpu_memory_buffer_factory_shared_memory.cc
diff --git a/content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc b/content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc
index 9a4bdcf538cab2132266fe8de6202c1f1e7be133..9a1f898e8d02a826c7287fee549f5c92cb436586 100644
--- a/content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc
+++ b/content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc
@@ -39,7 +39,7 @@ GpuMemoryBufferFactorySharedMemory::CreateGpuMemoryBuffer(
gfx::PluginWindowHandle surface_handle) {
base::SharedMemory shared_memory;
if (!shared_memory.CreateAnonymous(
- size.GetArea() * GpuMemoryBufferImpl::BytesPerPixel(format)))
+ size.GetArea() * GpuMemoryBufferImpl::BitsPerPixel(format) / 8))
return gfx::GpuMemoryBufferHandle();
gfx::GpuMemoryBufferHandle handle;
« no previous file with comments | « content/common/gpu/gpu_memory_buffer_factory_io_surface.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698