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

Unified Diff: ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc

Issue 1139903005: Add PERSISTENT_MAP usage for GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: persistentmap: fixmandolinebetter Created 5 years, 7 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
« ui/compositor/compositor.h ('K') | « ui/gfx/gpu_memory_buffer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc
diff --git a/ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc b/ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc
index 51ff149976c75b71dda485ed30d42ae6305df825..146573a264e325453c1921ad3a68ca730c421497 100644
--- a/ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc
+++ b/ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc
@@ -113,6 +113,10 @@ SurfaceFactoryOzone::BufferUsage GetOzoneUsageFor(
return SurfaceFactoryOzone::MAP;
case gfx::GpuMemoryBuffer::SCANOUT:
return SurfaceFactoryOzone::SCANOUT;
+ case gfx::GpuMemoryBuffer::PERSISTENT_MAP:
+ // TODO(alexst): This is not supported by ozone (yet?).
reveman 2015/05/20 14:26:08 I think you should add the SurfaceFactoryOzone::PE
danakj 2015/05/20 17:51:14 Done.
+ NOTREACHED();
+ return SurfaceFactoryOzone::MAP;
alexst (slow to review) 2015/05/20 12:43:37 Add a new enum type to SurfaceFactoryOzone, please
danakj 2015/05/20 17:51:14 Done.
}
NOTREACHED();
« ui/compositor/compositor.h ('K') | « ui/gfx/gpu_memory_buffer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698