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

Unified 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: Add braces. 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/webgl/WebGLCompressedTextureASTC.h
diff --git a/Source/modules/webgl/WebGLCompressedTextureASTC.h b/Source/modules/webgl/WebGLCompressedTextureASTC.h
new file mode 100644
index 0000000000000000000000000000000000000000..9a171b58ab10105b595e8bf89f0db8049cfc5000
--- /dev/null
+++ b/Source/modules/webgl/WebGLCompressedTextureASTC.h
@@ -0,0 +1,35 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebGLCompressedTextureASTC_h
+#define WebGLCompressedTextureASTC_h
+
+#include "modules/webgl/WebGLExtension.h"
+
+namespace blink {
+
+class WebGLCompressedTextureASTC final : public WebGLExtension {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ typedef struct {
+ int CompressType;
+ int blockWidth;
+ int blockHeight;
+ } BlockSizeCompressASTC;
+
+ static WebGLCompressedTextureASTC* create(WebGLRenderingContextBase*);
+ static bool supported(WebGLRenderingContextBase*);
+ static const char* extensionName();
+
+ ~WebGLCompressedTextureASTC() override;
+ WebGLExtensionName name() const override;
+ static const BlockSizeCompressASTC kBlockSizeCompressASTC[];
+
+private:
+ explicit WebGLCompressedTextureASTC(WebGLRenderingContextBase*);
+};
+
+} // namespace blink
+
+#endif // WebGLCompressedTextureASTC_h
« no previous file with comments | « Source/modules/webgl/WebGL2RenderingContext.cpp ('k') | Source/modules/webgl/WebGLCompressedTextureASTC.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698