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

Unified Diff: gpu/command_buffer/service/image_factory.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: gpu/command_buffer/service/image_factory.cc
diff --git a/gpu/command_buffer/service/image_factory.cc b/gpu/command_buffer/service/image_factory.cc
index f940498abf7edcf6922223a7fbe208fe4141193d..6b55010c8a7a5a3bae51be5508faeb0370c4ee23 100644
--- a/gpu/command_buffer/service/image_factory.cc
+++ b/gpu/command_buffer/service/image_factory.cc
@@ -71,6 +71,8 @@ bool ImageFactory::IsGpuMemoryBufferFormatSupported(
gfx::GpuMemoryBuffer::Format format,
const gpu::Capabilities& capabilities) {
switch (format) {
+ case gfx::GpuMemoryBuffer::ASTC:
+ return capabilities.texture_format_astc;
case gfx::GpuMemoryBuffer::ATC:
case gfx::GpuMemoryBuffer::ATCIA:
return capabilities.texture_format_atc;
@@ -100,6 +102,7 @@ bool ImageFactory::IsImageSizeValidForGpuMemoryBufferFormat(
const gfx::Size& size,
gfx::GpuMemoryBuffer::Format format) {
switch (format) {
+ case gfx::GpuMemoryBuffer::ASTC:
case gfx::GpuMemoryBuffer::ATC:
case gfx::GpuMemoryBuffer::ATCIA:
case gfx::GpuMemoryBuffer::DXT1:

Powered by Google App Engine
This is Rietveld 408576698