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

Unified Diff: Source/core/html/canvas/WebGLTransformFeedback.h

Issue 894143002: Adding Blink bindings for WebGL 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed accidentally added scratch file Created 5 years, 10 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
« no previous file with comments | « Source/core/html/canvas/WebGLSync.idl ('k') | Source/core/html/canvas/WebGLTransformFeedback.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLTransformFeedback.h
diff --git a/Source/core/html/canvas/WebGLTransformFeedback.h b/Source/core/html/canvas/WebGLTransformFeedback.h
new file mode 100644
index 0000000000000000000000000000000000000000..72c5f4b0d720e115209fb856153748ed9adea01e
--- /dev/null
+++ b/Source/core/html/canvas/WebGLTransformFeedback.h
@@ -0,0 +1,33 @@
+// 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 WebGLTransformFeedback_h
+#define WebGLTransformFeedback_h
+
+#include "core/html/canvas/WebGLSharedObject.h"
+#include "wtf/PassRefPtr.h"
+
+namespace blink {
+
+class WebGL2RenderingContextBase;
+
+class WebGLTransformFeedback : public WebGLSharedObject {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ ~WebGLTransformFeedback() override;
+
+ static PassRefPtrWillBeRawPtr<WebGLTransformFeedback> create(WebGL2RenderingContextBase*);
+
+protected:
+ explicit WebGLTransformFeedback(WebGL2RenderingContextBase*);
+
+ void deleteObjectImpl(blink::WebGraphicsContext3D*, Platform3DObject) override;
+
+private:
+ bool isTransformFeedback() const override { return true; }
+};
+
+} // namespace blink
+
+#endif // WebGLTransformFeedback_h
« no previous file with comments | « Source/core/html/canvas/WebGLSync.idl ('k') | Source/core/html/canvas/WebGLTransformFeedback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698