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

Side by Side Diff: gpu/ipc/service/gpu_memory_buffer_factory.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
« no previous file with comments | « no previous file | gpu/ipc/service/gpu_memory_buffer_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_H_
6 #define GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_H_ 6 #define GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 // Creates a new GPU memory buffer instance. A valid handle is returned on 30 // Creates a new GPU memory buffer instance. A valid handle is returned on
31 // success. It can be called on any thread. 31 // success. It can be called on any thread.
32 virtual gfx::GpuMemoryBufferHandle CreateGpuMemoryBuffer( 32 virtual gfx::GpuMemoryBufferHandle CreateGpuMemoryBuffer(
33 gfx::GpuMemoryBufferId id, 33 gfx::GpuMemoryBufferId id,
34 const gfx::Size& size, 34 const gfx::Size& size,
35 gfx::BufferFormat format, 35 gfx::BufferFormat format,
36 gfx::BufferUsage usage, 36 gfx::BufferUsage usage,
37 int client_id, 37 int client_id,
38 SurfaceHandle surface_handle) = 0; 38 SurfaceHandle surface_handle) = 0;
39 39
40 virtual gfx::GpuMemoryBufferAttribVector
41 GetGpuMemoryBufferAttribsForUsage(gfx::BufferUsage usage);
42
40 // Destroys GPU memory buffer identified by |id|. 43 // Destroys GPU memory buffer identified by |id|.
41 // It can be called on any thread. 44 // It can be called on any thread.
42 virtual void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 45 virtual void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
43 int client_id) = 0; 46 int client_id) = 0;
44 47
45 // Type-checking downcast routine. 48 // Type-checking downcast routine.
46 virtual ImageFactory* AsImageFactory() = 0; 49 virtual ImageFactory* AsImageFactory() = 0;
47 50
48 protected: 51 protected:
49 GpuMemoryBufferFactory() {} 52 GpuMemoryBufferFactory() {}
50 53
51 private: 54 private:
52 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferFactory); 55 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferFactory);
53 }; 56 };
54 57
55 } // namespace gpu 58 } // namespace gpu
56 59
57 #endif // GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_H_ 60 #endif // GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/ipc/service/gpu_memory_buffer_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698