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 #include "wtf/PassRefPtr.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class WebGLCompressedTextureASTC final : public WebGLExtension { |
| 14 DEFINE_WRAPPERTYPEINFO(); |
| 15 public: |
| 16 typedef struct { |
| 17 int CompressType; |
| 18 int blockWidth; |
| 19 int blockHeight; |
| 20 } BlockSizeCompressASTC; |
| 21 |
| 22 static PassRefPtrWillBeRawPtr<WebGLCompressedTextureASTC> create(WebGLRender
ingContextBase*); |
| 23 static bool supported(WebGLRenderingContextBase*); |
| 24 static const char* extensionName(); |
| 25 |
| 26 ~WebGLCompressedTextureASTC() override; |
| 27 WebGLExtensionName name() const override; |
| 28 static const BlockSizeCompressASTC kBlockSizeCompressASTC[]; |
| 29 static const int kSizeOfBlockSizeCompressASTC; |
| 30 |
| 31 private: |
| 32 explicit WebGLCompressedTextureASTC(WebGLRenderingContextBase*); |
| 33 }; |
| 34 |
| 35 } // namespace blink |
| 36 |
| 37 #endif // WebGLCompressedTextureASTC_h |
OLD | NEW |