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

Unified Diff: ui/gfx/gpu_memory_buffer.h

Issue 916083002: Add support for compressed GPU memory buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ozone Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/gpu_command_buffer_traits_multi.h ('k') | ui/gl/gl_image_linux_dma_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gpu_memory_buffer.h
diff --git a/ui/gfx/gpu_memory_buffer.h b/ui/gfx/gpu_memory_buffer.h
index e6ce5d25af8da9069b5ae3b310c281ae8df1c36c..3aa0964c36886233cb5ce7c474834abb51b60606 100644
--- a/ui/gfx/gpu_memory_buffer.h
+++ b/ui/gfx/gpu_memory_buffer.h
@@ -42,7 +42,18 @@ class GFX_EXPORT GpuMemoryBuffer {
public:
// The format needs to be taken into account when mapping a buffer into the
// client's address space.
- enum Format { RGBA_8888, RGBX_8888, BGRA_8888, FORMAT_LAST = BGRA_8888 };
+ enum Format {
+ ATC,
+ ATCIA,
+ DXT1,
+ DXT5,
+ ETC1,
+ RGBA_8888,
+ RGBX_8888,
+ BGRA_8888,
+
+ FORMAT_LAST = BGRA_8888
+ };
// The usage mode affects how a buffer can be used. Only buffers created with
// MAP can be mapped into the client's address space and accessed by the CPU.
« no previous file with comments | « gpu/ipc/gpu_command_buffer_traits_multi.h ('k') | ui/gl/gl_image_linux_dma_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698