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

Side by Side Diff: gpu/ipc/service/gpu_memory_buffer_factory_native_pixmap.h

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 #ifndef GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_NATIVE_PIXMAP_H_ 5 #ifndef GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_NATIVE_PIXMAP_H_
6 #define GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_NATIVE_PIXMAP_H_ 6 #define GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_NATIVE_PIXMAP_H_
7 7
8 #include <unordered_map> 8 #include <unordered_map>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 21 matching lines...) Expand all
32 // Overridden from GpuMemoryBufferFactory: 32 // Overridden from GpuMemoryBufferFactory:
33 gfx::GpuMemoryBufferHandle CreateGpuMemoryBuffer( 33 gfx::GpuMemoryBufferHandle CreateGpuMemoryBuffer(
34 gfx::GpuMemoryBufferId id, 34 gfx::GpuMemoryBufferId id,
35 const gfx::Size& size, 35 const gfx::Size& size,
36 gfx::BufferFormat format, 36 gfx::BufferFormat format,
37 gfx::BufferUsage usage, 37 gfx::BufferUsage usage,
38 int client_id, 38 int client_id,
39 SurfaceHandle surface_handle) override; 39 SurfaceHandle surface_handle) override;
40 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 40 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
41 int client_id) override; 41 int client_id) override;
42 gfx::GpuMemoryBufferAttribVector GetGpuMemoryBufferAttribsForUsage(
43 gfx::BufferUsage usage) override;
42 ImageFactory* AsImageFactory() override; 44 ImageFactory* AsImageFactory() override;
43 45
44 // Overridden from ImageFactory: 46 // Overridden from ImageFactory:
45 scoped_refptr<gl::GLImage> CreateImageForGpuMemoryBuffer( 47 scoped_refptr<gl::GLImage> CreateImageForGpuMemoryBuffer(
46 const gfx::GpuMemoryBufferHandle& handle, 48 const gfx::GpuMemoryBufferHandle& handle,
47 const gfx::Size& size, 49 const gfx::Size& size,
48 gfx::BufferFormat format, 50 gfx::BufferFormat format,
49 unsigned internalformat, 51 unsigned internalformat,
50 int client_id, 52 int client_id,
51 SurfaceHandle surface_handle) override; 53 SurfaceHandle surface_handle) override;
(...skipping 11 matching lines...) Expand all
63 NativePixmapMapKeyHash>; 65 NativePixmapMapKeyHash>;
64 NativePixmapMap native_pixmaps_; 66 NativePixmapMap native_pixmaps_;
65 base::Lock native_pixmaps_lock_; 67 base::Lock native_pixmaps_lock_;
66 68
67 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferFactoryNativePixmap); 69 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferFactoryNativePixmap);
68 }; 70 };
69 71
70 } // namespace gpu 72 } // namespace gpu
71 73
72 #endif // GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_NATIVE_PIXMAP_H_ 74 #endif // GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_NATIVE_PIXMAP_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_memory_buffer_factory.cc ('k') | gpu/ipc/service/gpu_memory_buffer_factory_native_pixmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698