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

Side by Side Diff: Source/core/html/canvas/WebGL2RenderingContext.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 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 WebGL2RenderingContext_h
6 #define WebGL2RenderingContext_h
7
8 #include "core/html/canvas/WebGL2RenderingContextBase.h"
9
10 namespace blink {
11
12 class WebGL2RenderingContext : public WebGL2RenderingContextBase {
13 DEFINE_WRAPPERTYPEINFO();
14 public:
15 static PassOwnPtrWillBeRawPtr<WebGL2RenderingContext> create(HTMLCanvasEleme nt*, const CanvasContextCreationAttributes&);
16 ~WebGL2RenderingContext() override;
17
18 unsigned version() const override { return 2; }
19 String contextName() const override { return "WebGL2RenderingContext"; }
20 void registerContextExtensions() override;
21
22 void trace(Visitor*) override;
23
24 protected:
25 WebGL2RenderingContext(HTMLCanvasElement* passedCanvas, PassOwnPtr<blink::We bGraphicsContext3D>, const WebGLContextAttributes& requestedAttributes);
26
27 RefPtr<WebGLDebugRendererInfo> m_webglDebugRendererInfo;
28 RefPtr<WebGLDebugShaders> m_webglDebugShaders;
29 };
30
31 DEFINE_TYPE_CASTS(WebGL2RenderingContext, CanvasRenderingContext, context,
32 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 2,
33 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 2) ;
34
35 } // namespace blink
36
37 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLCanvasElement.cpp ('k') | Source/core/html/canvas/WebGL2RenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698