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

Unified Diff: services/ui/ws/mus_gpu_memory_buffer_manager.cc

Issue 2316733002: gpu: Delete unnecessary code. (Closed)
Patch Set: . Created 4 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
« no previous file with comments | « gpu/ipc/common/gpu_memory_buffer_support.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/mus_gpu_memory_buffer_manager.cc
diff --git a/services/ui/ws/mus_gpu_memory_buffer_manager.cc b/services/ui/ws/mus_gpu_memory_buffer_manager.cc
index da1e36f8d75c24906cbc4d8b1b92231909fa2ae2..e80e48aa4fa505ae17a504c5c089315508b17fff 100644
--- a/services/ui/ws/mus_gpu_memory_buffer_manager.cc
+++ b/services/ui/ws/mus_gpu_memory_buffer_manager.cc
@@ -13,26 +13,6 @@
namespace ui {
-namespace {
-
-bool IsNativeGpuMemoryBufferFactoryConfigurationSupported(
- gfx::BufferFormat format,
- gfx::BufferUsage usage) {
- switch (gpu::GetNativeGpuMemoryBufferType()) {
- case gfx::SHARED_MEMORY_BUFFER:
- return false;
- case gfx::IO_SURFACE_BUFFER:
- case gfx::SURFACE_TEXTURE_BUFFER:
- case gfx::OZONE_NATIVE_PIXMAP:
- return gpu::IsNativeGpuMemoryBufferConfigurationSupported(format, usage);
- default:
- NOTREACHED();
- return false;
- }
-}
-
-} // namespace
-
namespace ws {
MusGpuMemoryBufferManager::MusGpuMemoryBufferManager(
@@ -50,7 +30,7 @@ MusGpuMemoryBufferManager::AllocateGpuMemoryBuffer(
gpu::SurfaceHandle surface_handle) {
gfx::GpuMemoryBufferId id = GetNextGenericSharedMemoryId();
const bool is_native =
- IsNativeGpuMemoryBufferFactoryConfigurationSupported(format, usage);
+ gpu::IsNativeGpuMemoryBufferConfigurationSupported(format, usage);
if (is_native) {
gfx::GpuMemoryBufferHandle handle = gpu_service_->CreateGpuMemoryBuffer(
id, size, format, usage, client_id_, surface_handle);
« no previous file with comments | « gpu/ipc/common/gpu_memory_buffer_support.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698