OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WebGLCompressedTextureASTC_h |
| 6 #define WebGLCompressedTextureASTC_h |
| 7 |
| 8 #include "modules/webgl/WebGLExtension.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class WebGLCompressedTextureASTC final : public WebGLExtension { |
| 13 DEFINE_WRAPPERTYPEINFO(); |
| 14 public: |
| 15 typedef struct { |
| 16 int CompressType; |
| 17 int blockWidth; |
| 18 int blockHeight; |
| 19 } BlockSizeCompressASTC; |
| 20 |
| 21 static WebGLCompressedTextureASTC* create(WebGLRenderingContextBase*); |
| 22 static bool supported(WebGLRenderingContextBase*); |
| 23 static const char* extensionName(); |
| 24 |
| 25 ~WebGLCompressedTextureASTC() override; |
| 26 WebGLExtensionName name() const override; |
| 27 static const BlockSizeCompressASTC kBlockSizeCompressASTC[]; |
| 28 |
| 29 private: |
| 30 explicit WebGLCompressedTextureASTC(WebGLRenderingContextBase*); |
| 31 }; |
| 32 |
| 33 } // namespace blink |
| 34 |
| 35 #endif // WebGLCompressedTextureASTC_h |
OLD | NEW |