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

Side by Side Diff: Source/modules/webgl/WebGLCompressedTextureASTC.h

Issue 1265703005: Implement the texture uploading of ASTC compression for WebGL(part II) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Clean and Remove unnecessary enum. 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698