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: |