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

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

Issue 1263043006: Implement the texture uploading of ASTC compression for WebGL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and Remove unnecessary enum/OES extensions. Created 5 years, 4 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 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 "base/trace_event/memory_dump_manager.h" 9 #include "base/trace_event/memory_dump_manager.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 27 matching lines...) Expand all
38 GpuMemoryBufferId buffer_id); 38 GpuMemoryBufferId buffer_id);
39 39
40 // This interface typically correspond to a type of shared memory that is also 40 // This interface typically correspond to a type of shared memory that is also
41 // shared with the GPU. A GPU memory buffer can be written to directly by 41 // shared with the GPU. A GPU memory buffer can be written to directly by
42 // regular CPU code, but can also be read by the GPU. 42 // regular CPU code, but can also be read by the GPU.
43 class GFX_EXPORT GpuMemoryBuffer { 43 class GFX_EXPORT GpuMemoryBuffer {
44 public: 44 public:
45 // The format needs to be taken into account when mapping a buffer into the 45 // The format needs to be taken into account when mapping a buffer into the
46 // client's address space. 46 // client's address space.
47 enum Format { 47 enum Format {
48 ASTC,
piman 2015/08/17 23:00:21 Can you name this one ASTC_4X4? For future-proofin
48 ATC, 49 ATC,
49 ATCIA, 50 ATCIA,
50 DXT1, 51 DXT1,
51 DXT5, 52 DXT5,
52 ETC1, 53 ETC1,
53 R_8, 54 R_8,
54 RGBA_4444, 55 RGBA_4444,
55 RGBA_8888, 56 RGBA_8888,
56 RGBX_8888, 57 RGBX_8888,
57 BGRA_8888, 58 BGRA_8888,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // Returns a platform specific handle for this buffer. 97 // Returns a platform specific handle for this buffer.
97 virtual GpuMemoryBufferHandle GetHandle() const = 0; 98 virtual GpuMemoryBufferHandle GetHandle() const = 0;
98 99
99 // Type-checking downcast routine. 100 // Type-checking downcast routine.
100 virtual ClientBuffer AsClientBuffer() = 0; 101 virtual ClientBuffer AsClientBuffer() = 0;
101 }; 102 };
102 103
103 } // namespace gfx 104 } // namespace gfx
104 105
105 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_ 106 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698