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

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

Issue 2547813002: Remove WebGLObject maps from WebGLRenderingContextBase and WebGLContextGroup. (Closed)
Patch Set: Fixed WebGLContextObject::validate. Made WebGLExtension non-finalized. Created 4 years 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
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 #ifndef WebGLCompressedTextureASTC_h 5 #ifndef WebGLCompressedTextureASTC_h
6 #define WebGLCompressedTextureASTC_h 6 #define WebGLCompressedTextureASTC_h
7 7
8 #include "modules/webgl/WebGLExtension.h" 8 #include "modules/webgl/WebGLExtension.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class WebGLCompressedTextureASTC final : public WebGLExtension { 12 class WebGLCompressedTextureASTC final : public WebGLExtension {
13 DEFINE_WRAPPERTYPEINFO(); 13 DEFINE_WRAPPERTYPEINFO();
14 14
15 public: 15 public:
16 typedef struct { 16 typedef struct {
17 int CompressType; 17 int CompressType;
18 int blockWidth; 18 int blockWidth;
19 int blockHeight; 19 int blockHeight;
20 } BlockSizeCompressASTC; 20 } BlockSizeCompressASTC;
21 21
22 static WebGLCompressedTextureASTC* create(WebGLRenderingContextBase*); 22 static WebGLCompressedTextureASTC* create(WebGLRenderingContextBase*);
23 static bool supported(WebGLRenderingContextBase*); 23 static bool supported(WebGLRenderingContextBase*);
24 static const char* extensionName(); 24 static const char* extensionName();
25 25
26 ~WebGLCompressedTextureASTC() override;
27 WebGLExtensionName name() const override; 26 WebGLExtensionName name() const override;
28 static const BlockSizeCompressASTC kBlockSizeCompressASTC[]; 27 static const BlockSizeCompressASTC kBlockSizeCompressASTC[];
29 28
30 private: 29 private:
31 explicit WebGLCompressedTextureASTC(WebGLRenderingContextBase*); 30 explicit WebGLCompressedTextureASTC(WebGLRenderingContextBase*);
32 }; 31 };
33 32
34 } // namespace blink 33 } // namespace blink
35 34
36 #endif // WebGLCompressedTextureASTC_h 35 #endif // WebGLCompressedTextureASTC_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698