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

Side by Side Diff: ui/gfx/gpu_memory_buffer.h

Issue 1051503003: Add R_8 GPU memory buffers format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merged on master. Created 5 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 | « gpu/command_buffer/tests/gl_manager.cc ('k') | ui/gl/gl_image_linux_dma_buffer.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 UI_GFX_GPU_MEMORY_BUFFER_H_ 5 #ifndef UI_GFX_GPU_MEMORY_BUFFER_H_
6 #define UI_GFX_GPU_MEMORY_BUFFER_H_ 6 #define UI_GFX_GPU_MEMORY_BUFFER_H_
7 7
8 #include "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "ui/gfx/gfx_export.h" 10 #include "ui/gfx/gfx_export.h"
(...skipping 30 matching lines...) Expand all
41 class GFX_EXPORT GpuMemoryBuffer { 41 class GFX_EXPORT GpuMemoryBuffer {
42 public: 42 public:
43 // The format needs to be taken into account when mapping a buffer into the 43 // The format needs to be taken into account when mapping a buffer into the
44 // client's address space. 44 // client's address space.
45 enum Format { 45 enum Format {
46 ATC, 46 ATC,
47 ATCIA, 47 ATCIA,
48 DXT1, 48 DXT1,
49 DXT5, 49 DXT5,
50 ETC1, 50 ETC1,
51 R_8,
51 RGBA_8888, 52 RGBA_8888,
52 RGBX_8888, 53 RGBX_8888,
53 BGRA_8888, 54 BGRA_8888,
54 YUV_420, 55 YUV_420,
55 56
56 FORMAT_LAST = YUV_420 57 FORMAT_LAST = YUV_420
57 }; 58 };
58 59
59 // The usage mode affects how a buffer can be used. Only buffers created with 60 // The usage mode affects how a buffer can be used. Only buffers created with
60 // MAP can be mapped into the client's address space and accessed by the CPU. 61 // MAP can be mapped into the client's address space and accessed by the CPU.
(...skipping 25 matching lines...) Expand all
86 // Returns a platform specific handle for this buffer. 87 // Returns a platform specific handle for this buffer.
87 virtual GpuMemoryBufferHandle GetHandle() const = 0; 88 virtual GpuMemoryBufferHandle GetHandle() const = 0;
88 89
89 // Type-checking downcast routine. 90 // Type-checking downcast routine.
90 virtual ClientBuffer AsClientBuffer() = 0; 91 virtual ClientBuffer AsClientBuffer() = 0;
91 }; 92 };
92 93
93 } // namespace gfx 94 } // namespace gfx
94 95
95 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_ 96 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | ui/gl/gl_image_linux_dma_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698