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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp

Issue 1881563003: Implement OffscreenCanvas.getContext('webgl') (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: offscreenCanvas.getContext('webgl') crashes on worker Created 4 years, 8 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
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 #include "modules/webgl/WebGL2RenderingContext.h" 5 #include "modules/webgl/WebGL2RenderingContext.h"
6 6
7 #include "bindings/modules/v8/UnionTypesModules.h" 7 #include "bindings/modules/v8/UnionTypesModules.h"
8 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
9 #include "core/frame/Settings.h" 9 #include "core/frame/Settings.h"
10 #include "core/loader/FrameLoader.h" 10 #include "core/loader/FrameLoader.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 WebGL2RenderingContext::~WebGL2RenderingContext() 77 WebGL2RenderingContext::~WebGL2RenderingContext()
78 { 78 {
79 79
80 } 80 }
81 81
82 void WebGL2RenderingContext::setCanvasGetContextResult(RenderingContext& result) 82 void WebGL2RenderingContext::setCanvasGetContextResult(RenderingContext& result)
83 { 83 {
84 result.setWebGL2RenderingContext(this); 84 result.setWebGL2RenderingContext(this);
85 } 85 }
86 86
87 void WebGL2RenderingContext::setOffscreenCanvasGetContextResult(OffscreenRenderi ngContext& result)
88 {
89 result.setWebGL2RenderingContext(this);
90 }
91
92 ImageBitmap* WebGL2RenderingContext::transferToImageBitmap(ExceptionState& excep tionState)
93 {
94 NOTIMPLEMENTED();
95 return nullptr;
96 }
97
87 void WebGL2RenderingContext::registerContextExtensions() 98 void WebGL2RenderingContext::registerContextExtensions()
88 { 99 {
89 // Register extensions. 100 // Register extensions.
90 registerExtension<CHROMIUMSubscribeUniform>(m_chromiumSubscribeUniform); 101 registerExtension<CHROMIUMSubscribeUniform>(m_chromiumSubscribeUniform);
91 registerExtension<EXTColorBufferFloat>(m_extColorBufferFloat, DraftExtension ); 102 registerExtension<EXTColorBufferFloat>(m_extColorBufferFloat, DraftExtension );
92 registerExtension<EXTDisjointTimerQuery>(m_extDisjointTimerQuery); 103 registerExtension<EXTDisjointTimerQuery>(m_extDisjointTimerQuery);
93 registerExtension<EXTTextureFilterAnisotropic>(m_extTextureFilterAnisotropic ); 104 registerExtension<EXTTextureFilterAnisotropic>(m_extTextureFilterAnisotropic );
94 registerExtension<OESTextureFloatLinear>(m_oesTextureFloatLinear); 105 registerExtension<OESTextureFloatLinear>(m_oesTextureFloatLinear);
95 registerExtension<WebGLCompressedTextureASTC>(m_webglCompressedTextureASTC); 106 registerExtension<WebGLCompressedTextureASTC>(m_webglCompressedTextureASTC);
96 registerExtension<WebGLCompressedTextureATC>(m_webglCompressedTextureATC); 107 registerExtension<WebGLCompressedTextureATC>(m_webglCompressedTextureATC);
(...skipping 17 matching lines...) Expand all
114 visitor->trace(m_webglCompressedTextureETC1); 125 visitor->trace(m_webglCompressedTextureETC1);
115 visitor->trace(m_webglCompressedTexturePVRTC); 126 visitor->trace(m_webglCompressedTexturePVRTC);
116 visitor->trace(m_webglCompressedTextureS3TC); 127 visitor->trace(m_webglCompressedTextureS3TC);
117 visitor->trace(m_webglDebugRendererInfo); 128 visitor->trace(m_webglDebugRendererInfo);
118 visitor->trace(m_webglDebugShaders); 129 visitor->trace(m_webglDebugShaders);
119 visitor->trace(m_webglLoseContext); 130 visitor->trace(m_webglLoseContext);
120 WebGL2RenderingContextBase::trace(visitor); 131 WebGL2RenderingContextBase::trace(visitor);
121 } 132 }
122 133
123 } // namespace blink 134 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698