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

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

Issue 2547813002: Remove WebGLObject maps from WebGLRenderingContextBase and WebGLContextGroup. (Closed)
Patch Set: Fixed WebGLContextObject::validate. Made WebGLExtension non-finalized. Created 4 years 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/OffscreenCanvasRenderingContext2DOrWebGLRenderingC ontextOrWebGL2RenderingContext.h" 7 #include "bindings/modules/v8/OffscreenCanvasRenderingContext2DOrWebGLRenderingC ontextOrWebGL2RenderingContext.h"
8 #include "bindings/modules/v8/RenderingContext.h" 8 #include "bindings/modules/v8/RenderingContext.h"
9 #include "core/frame/LocalFrame.h" 9 #include "core/frame/LocalFrame.h"
10 #include "core/frame/Settings.h" 10 #include "core/frame/Settings.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 requestedAttributes) {} 128 requestedAttributes) {}
129 129
130 WebGL2RenderingContext::WebGL2RenderingContext( 130 WebGL2RenderingContext::WebGL2RenderingContext(
131 OffscreenCanvas* passedOffscreenCanvas, 131 OffscreenCanvas* passedOffscreenCanvas,
132 std::unique_ptr<WebGraphicsContext3DProvider> contextProvider, 132 std::unique_ptr<WebGraphicsContext3DProvider> contextProvider,
133 const CanvasContextCreationAttributes& requestedAttributes) 133 const CanvasContextCreationAttributes& requestedAttributes)
134 : WebGL2RenderingContextBase(passedOffscreenCanvas, 134 : WebGL2RenderingContextBase(passedOffscreenCanvas,
135 std::move(contextProvider), 135 std::move(contextProvider),
136 requestedAttributes) {} 136 requestedAttributes) {}
137 137
138 WebGL2RenderingContext::~WebGL2RenderingContext() {}
139
140 void WebGL2RenderingContext::setCanvasGetContextResult( 138 void WebGL2RenderingContext::setCanvasGetContextResult(
141 RenderingContext& result) { 139 RenderingContext& result) {
142 result.setWebGL2RenderingContext(this); 140 result.setWebGL2RenderingContext(this);
143 } 141 }
144 142
145 void WebGL2RenderingContext::setOffscreenCanvasGetContextResult( 143 void WebGL2RenderingContext::setOffscreenCanvasGetContextResult(
146 OffscreenRenderingContext& result) { 144 OffscreenRenderingContext& result) {
147 result.setWebGL2RenderingContext(this); 145 result.setWebGL2RenderingContext(this);
148 } 146 }
149 147
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 visitor->trace(m_webglLoseContext); 188 visitor->trace(m_webglLoseContext);
191 WebGL2RenderingContextBase::trace(visitor); 189 WebGL2RenderingContextBase::trace(visitor);
192 } 190 }
193 191
194 DEFINE_TRACE_WRAPPERS(WebGL2RenderingContext) { 192 DEFINE_TRACE_WRAPPERS(WebGL2RenderingContext) {
195 // Extensions are managed by WebGL2RenderingContextBase. 193 // Extensions are managed by WebGL2RenderingContextBase.
196 WebGL2RenderingContextBase::traceWrappers(visitor); 194 WebGL2RenderingContextBase::traceWrappers(visitor);
197 } 195 }
198 196
199 } // namespace blink 197 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698