| OLD | NEW |
| 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 <memory> | 7 #include <memory> |
| 8 #include "bindings/modules/v8/OffscreenCanvasRenderingContext2DOrWebGLRenderingC
ontextOrWebGL2RenderingContext.h" | 8 #include "bindings/modules/v8/OffscreenCanvasRenderingContext2DOrWebGLRenderingC
ontextOrWebGL2RenderingContext.h" |
| 9 #include "bindings/modules/v8/RenderingContext.h" | 9 #include "bindings/modules/v8/RenderingContext.h" |
| 10 #include "core/frame/LocalFrame.h" | 10 #include "core/frame/LocalFrame.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 result.setWebGL2RenderingContext(this); | 141 result.setWebGL2RenderingContext(this); |
| 142 } | 142 } |
| 143 | 143 |
| 144 void WebGL2RenderingContext::SetOffscreenCanvasGetContextResult( | 144 void WebGL2RenderingContext::SetOffscreenCanvasGetContextResult( |
| 145 OffscreenRenderingContext& result) { | 145 OffscreenRenderingContext& result) { |
| 146 result.setWebGL2RenderingContext(this); | 146 result.setWebGL2RenderingContext(this); |
| 147 } | 147 } |
| 148 | 148 |
| 149 ImageBitmap* WebGL2RenderingContext::TransferToImageBitmap( | 149 ImageBitmap* WebGL2RenderingContext::TransferToImageBitmap( |
| 150 ScriptState* script_state) { | 150 ScriptState* script_state) { |
| 151 NOTIMPLEMENTED(); | 151 return TransferToImageBitmapBase(script_state); |
| 152 return nullptr; | |
| 153 } | 152 } |
| 154 | 153 |
| 155 void WebGL2RenderingContext::RegisterContextExtensions() { | 154 void WebGL2RenderingContext::RegisterContextExtensions() { |
| 156 // Register extensions. | 155 // Register extensions. |
| 157 RegisterExtension<EXTColorBufferFloat>(ext_color_buffer_float_); | 156 RegisterExtension<EXTColorBufferFloat>(ext_color_buffer_float_); |
| 158 RegisterExtension<EXTDisjointTimerQueryWebGL2>( | 157 RegisterExtension<EXTDisjointTimerQueryWebGL2>( |
| 159 ext_disjoint_timer_query_web_gl2_); | 158 ext_disjoint_timer_query_web_gl2_); |
| 160 RegisterExtension<EXTTextureFilterAnisotropic>( | 159 RegisterExtension<EXTTextureFilterAnisotropic>( |
| 161 ext_texture_filter_anisotropic_); | 160 ext_texture_filter_anisotropic_); |
| 162 RegisterExtension<OESTextureFloatLinear>(oes_texture_float_linear_); | 161 RegisterExtension<OESTextureFloatLinear>(oes_texture_float_linear_); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 visitor->Trace(webgl_lose_context_); | 193 visitor->Trace(webgl_lose_context_); |
| 195 WebGL2RenderingContextBase::Trace(visitor); | 194 WebGL2RenderingContextBase::Trace(visitor); |
| 196 } | 195 } |
| 197 | 196 |
| 198 DEFINE_TRACE_WRAPPERS(WebGL2RenderingContext) { | 197 DEFINE_TRACE_WRAPPERS(WebGL2RenderingContext) { |
| 199 // Extensions are managed by WebGL2RenderingContextBase. | 198 // Extensions are managed by WebGL2RenderingContextBase. |
| 200 WebGL2RenderingContextBase::TraceWrappers(visitor); | 199 WebGL2RenderingContextBase::TraceWrappers(visitor); |
| 201 } | 200 } |
| 202 | 201 |
| 203 } // namespace blink | 202 } // namespace blink |
| OLD | NEW |