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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl.cc

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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/client/gpu_memory_buffer_impl.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl.cc b/content/common/gpu/client/gpu_memory_buffer_impl.cc
index 5d2350af8f6d46625289f5bc18faf52fdfe8bf35..aef00669a0d0e0ba279989a23edcbce380c2c616 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_impl.cc
@@ -82,6 +82,7 @@ GpuMemoryBufferImpl* GpuMemoryBufferImpl::FromClientBuffer(
size_t GpuMemoryBufferImpl::NumberOfPlanesForGpuMemoryBufferFormat(
Format format) {
switch (format) {
+ case ASTC:
case ATC:
case ATCIA:
case DXT1:
@@ -103,6 +104,7 @@ size_t GpuMemoryBufferImpl::NumberOfPlanesForGpuMemoryBufferFormat(
// static
size_t GpuMemoryBufferImpl::SubsamplingFactor(Format format, int plane) {
switch (format) {
+ case ASTC:
case ATC:
case ATCIA:
case DXT1:
@@ -136,6 +138,7 @@ bool GpuMemoryBufferImpl::RowSizeInBytes(size_t width,
DCHECK_EQ(plane, 0);
*size_in_bytes = width;
return true;
+ case ASTC:
case ATC:
case DXT1:
case ETC1:

Powered by Google App Engine
This is Rietveld 408576698