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

Side by Side Diff: gpu/ipc/service/gpu_memory_buffer_factory.cc

Issue 2802613003: GpuMemoryBufferFactoryOzoneNativePixmap: expose supported GMB attribs
Patch Set: rename GetSupportedGpuMemoryBufferAttribsForUsage to GetGpuMemoryBufferAttribsForUsage Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/ipc/service/gpu_memory_buffer_factory.h" 5 #include "gpu/ipc/service/gpu_memory_buffer_factory.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 12 matching lines...) Expand all
23 GpuMemoryBufferFactory::CreateNativeType() { 23 GpuMemoryBufferFactory::CreateNativeType() {
24 #if defined(OS_MACOSX) 24 #if defined(OS_MACOSX)
25 return base::WrapUnique(new GpuMemoryBufferFactoryIOSurface); 25 return base::WrapUnique(new GpuMemoryBufferFactoryIOSurface);
26 #endif 26 #endif
27 #if defined(OS_LINUX) 27 #if defined(OS_LINUX)
28 return base::WrapUnique(new GpuMemoryBufferFactoryNativePixmap); 28 return base::WrapUnique(new GpuMemoryBufferFactoryNativePixmap);
29 #endif 29 #endif
30 return nullptr; 30 return nullptr;
31 } 31 }
32 32
33 gfx::GpuMemoryBufferAttribVector
34 GpuMemoryBufferFactory::GetGpuMemoryBufferAttribsForUsage(
35 gfx::BufferUsage usage) {
36 return gfx::GpuMemoryBufferAttribVector();
37 }
38
33 } // namespace gpu 39 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_memory_buffer_factory.h ('k') | gpu/ipc/service/gpu_memory_buffer_factory_native_pixmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698