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

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

Issue 894143002: Adding Blink bindings for WebGL 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed @kbr's feedback Created 5 years, 11 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/core/html/canvas/WebGLSampler.h
diff --git a/Source/core/html/canvas/WebGLSampler.h b/Source/core/html/canvas/WebGLSampler.h
new file mode 100644
index 0000000000000000000000000000000000000000..25ff6a6fe25158355e6c0f28841b94ceb000b8f0
--- /dev/null
+++ b/Source/core/html/canvas/WebGLSampler.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 WebGLSampler_h
+#define WebGLSampler_h
+
+#include "core/html/canvas/WebGLSharedObject.h"
+#include "wtf/PassRefPtr.h"
+
+namespace blink {
+
+class WebGL2RenderingContextBase;
+
+class WebGLSampler : public WebGLSharedObject {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ virtual ~WebGLSampler();
+
+ static PassRefPtrWillBeRawPtr<WebGLSampler> create(WebGL2RenderingContextBase*);
+
+protected:
+ WebGLSampler(WebGL2RenderingContextBase*);
dshwang 2015/02/04 14:05:22 explicit
+
+ virtual void deleteObjectImpl(blink::WebGraphicsContext3D*, Platform3DObject);
+
+private:
+ virtual bool isSampler() const { return true; }
+};
+
+} // namespace blink
+
+#endif // WebGLSampler_h

Powered by Google App Engine
This is Rietveld 408576698