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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 ext_texture_filter_anisotropic_); | 161 ext_texture_filter_anisotropic_); |
162 RegisterExtension<OESTextureFloatLinear>(oes_texture_float_linear_); | 162 RegisterExtension<OESTextureFloatLinear>(oes_texture_float_linear_); |
163 RegisterExtension<WebGLCompressedTextureASTC>(webgl_compressed_texture_astc_); | 163 RegisterExtension<WebGLCompressedTextureASTC>(webgl_compressed_texture_astc_); |
164 RegisterExtension<WebGLCompressedTextureATC>(webgl_compressed_texture_atc_); | 164 RegisterExtension<WebGLCompressedTextureATC>(webgl_compressed_texture_atc_); |
165 RegisterExtension<WebGLCompressedTextureETC>(webgl_compressed_texture_etc_); | 165 RegisterExtension<WebGLCompressedTextureETC>(webgl_compressed_texture_etc_); |
166 RegisterExtension<WebGLCompressedTextureETC1>(webgl_compressed_texture_etc1_); | 166 RegisterExtension<WebGLCompressedTextureETC1>(webgl_compressed_texture_etc1_); |
167 RegisterExtension<WebGLCompressedTexturePVRTC>( | 167 RegisterExtension<WebGLCompressedTexturePVRTC>( |
168 webgl_compressed_texture_pvrtc_); | 168 webgl_compressed_texture_pvrtc_); |
169 RegisterExtension<WebGLCompressedTextureS3TC>(webgl_compressed_texture_s3tc_); | 169 RegisterExtension<WebGLCompressedTextureS3TC>(webgl_compressed_texture_s3tc_); |
170 RegisterExtension<WebGLCompressedTextureS3TCsRGB>( | 170 RegisterExtension<WebGLCompressedTextureS3TCsRGB>( |
171 webgl_compressed_texture_s3t_cs_rgb_, kDraftExtension); | 171 webgl_compressed_texture_s3tc_srgb_, kDraftExtension); |
172 RegisterExtension<WebGLDebugRendererInfo>(webgl_debug_renderer_info_); | 172 RegisterExtension<WebGLDebugRendererInfo>(webgl_debug_renderer_info_); |
173 RegisterExtension<WebGLDebugShaders>(webgl_debug_shaders_); | 173 RegisterExtension<WebGLDebugShaders>(webgl_debug_shaders_); |
174 RegisterExtension<WebGLGetBufferSubDataAsync>( | 174 RegisterExtension<WebGLGetBufferSubDataAsync>( |
175 webgl_get_buffer_sub_data_async_, kDraftExtension); | 175 webgl_get_buffer_sub_data_async_, kDraftExtension); |
176 RegisterExtension<WebGLLoseContext>(webgl_lose_context_); | 176 RegisterExtension<WebGLLoseContext>(webgl_lose_context_); |
177 } | 177 } |
178 | 178 |
179 DEFINE_TRACE(WebGL2RenderingContext) { | 179 DEFINE_TRACE(WebGL2RenderingContext) { |
180 visitor->Trace(ext_color_buffer_float_); | 180 visitor->Trace(ext_color_buffer_float_); |
181 visitor->Trace(ext_disjoint_timer_query_web_gl2_); | 181 visitor->Trace(ext_disjoint_timer_query_web_gl2_); |
182 visitor->Trace(ext_texture_filter_anisotropic_); | 182 visitor->Trace(ext_texture_filter_anisotropic_); |
183 visitor->Trace(oes_texture_float_linear_); | 183 visitor->Trace(oes_texture_float_linear_); |
184 visitor->Trace(webgl_compressed_texture_astc_); | 184 visitor->Trace(webgl_compressed_texture_astc_); |
185 visitor->Trace(webgl_compressed_texture_atc_); | 185 visitor->Trace(webgl_compressed_texture_atc_); |
186 visitor->Trace(webgl_compressed_texture_etc_); | 186 visitor->Trace(webgl_compressed_texture_etc_); |
187 visitor->Trace(webgl_compressed_texture_etc1_); | 187 visitor->Trace(webgl_compressed_texture_etc1_); |
188 visitor->Trace(webgl_compressed_texture_pvrtc_); | 188 visitor->Trace(webgl_compressed_texture_pvrtc_); |
189 visitor->Trace(webgl_compressed_texture_s3tc_); | 189 visitor->Trace(webgl_compressed_texture_s3tc_); |
190 visitor->Trace(webgl_compressed_texture_s3t_cs_rgb_); | 190 visitor->Trace(webgl_compressed_texture_s3tc_srgb_); |
191 visitor->Trace(webgl_debug_renderer_info_); | 191 visitor->Trace(webgl_debug_renderer_info_); |
192 visitor->Trace(webgl_debug_shaders_); | 192 visitor->Trace(webgl_debug_shaders_); |
193 visitor->Trace(webgl_get_buffer_sub_data_async_); | 193 visitor->Trace(webgl_get_buffer_sub_data_async_); |
194 visitor->Trace(webgl_lose_context_); | 194 visitor->Trace(webgl_lose_context_); |
195 WebGL2RenderingContextBase::Trace(visitor); | 195 WebGL2RenderingContextBase::Trace(visitor); |
196 } | 196 } |
197 | 197 |
198 DEFINE_TRACE_WRAPPERS(WebGL2RenderingContext) { | 198 DEFINE_TRACE_WRAPPERS(WebGL2RenderingContext) { |
199 // Extensions are managed by WebGL2RenderingContextBase. | 199 // Extensions are managed by WebGL2RenderingContextBase. |
200 WebGL2RenderingContextBase::TraceWrappers(visitor); | 200 WebGL2RenderingContextBase::TraceWrappers(visitor); |
201 } | 201 } |
202 | 202 |
203 } // namespace blink | 203 } // namespace blink |
OLD | NEW |