OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "modules/webgl/WebGLCompressedTextureASTC.h" | 5 #include "modules/webgl/WebGLCompressedTextureASTC.h" |
6 | 6 |
7 #include "modules/webgl/WebGLRenderingContextBase.h" | 7 #include "modules/webgl/WebGLRenderingContextBase.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 return new WebGLCompressedTextureASTC(context); | 55 return new WebGLCompressedTextureASTC(context); |
56 } | 56 } |
57 | 57 |
58 bool WebGLCompressedTextureASTC::supported(WebGLRenderingContextBase* context) { | 58 bool WebGLCompressedTextureASTC::supported(WebGLRenderingContextBase* context) { |
59 Extensions3DUtil* extensionsUtil = context->extensionsUtil(); | 59 Extensions3DUtil* extensionsUtil = context->extensionsUtil(); |
60 return extensionsUtil->supportsExtension( | 60 return extensionsUtil->supportsExtension( |
61 "GL_KHR_texture_compression_astc_ldr"); | 61 "GL_KHR_texture_compression_astc_ldr"); |
62 } | 62 } |
63 | 63 |
64 const char* WebGLCompressedTextureASTC::extensionName() { | 64 const char* WebGLCompressedTextureASTC::extensionName() { |
65 // TODO(cyzero.kim): implement extension for GL_KHR_texture_compression_astc_h
dr. | 65 // TODO(cyzero.kim): implement extension for |
| 66 // GL_KHR_texture_compression_astc_hdr. |
66 return "WEBGL_compressed_texture_astc"; | 67 return "WEBGL_compressed_texture_astc"; |
67 } | 68 } |
68 | 69 |
69 } // namespace blink | 70 } // namespace blink |
OLD | NEW |