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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContext.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 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 WebGLRenderingContext::WebGLRenderingContext( 145 WebGLRenderingContext::WebGLRenderingContext(
146 OffscreenCanvas* passedOffscreenCanvas, 146 OffscreenCanvas* passedOffscreenCanvas,
147 std::unique_ptr<WebGraphicsContext3DProvider> contextProvider, 147 std::unique_ptr<WebGraphicsContext3DProvider> contextProvider,
148 const CanvasContextCreationAttributes& requestedAttributes) 148 const CanvasContextCreationAttributes& requestedAttributes)
149 : WebGLRenderingContextBase(passedOffscreenCanvas, 149 : WebGLRenderingContextBase(passedOffscreenCanvas,
150 std::move(contextProvider), 150 std::move(contextProvider),
151 requestedAttributes, 151 requestedAttributes,
152 1) {} 152 1) {}
153 153
154 WebGLRenderingContext::~WebGLRenderingContext() {}
155
156 void WebGLRenderingContext::setCanvasGetContextResult( 154 void WebGLRenderingContext::setCanvasGetContextResult(
157 RenderingContext& result) { 155 RenderingContext& result) {
158 result.setWebGLRenderingContext(this); 156 result.setWebGLRenderingContext(this);
159 } 157 }
160 158
161 void WebGLRenderingContext::setOffscreenCanvasGetContextResult( 159 void WebGLRenderingContext::setOffscreenCanvasGetContextResult(
162 OffscreenRenderingContext& result) { 160 OffscreenRenderingContext& result) {
163 result.setWebGLRenderingContext(this); 161 result.setWebGLRenderingContext(this);
164 } 162 }
165 163
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 visitor->trace(m_webglDepthTexture); 238 visitor->trace(m_webglDepthTexture);
241 WebGLRenderingContextBase::trace(visitor); 239 WebGLRenderingContextBase::trace(visitor);
242 } 240 }
243 241
244 DEFINE_TRACE_WRAPPERS(WebGLRenderingContext) { 242 DEFINE_TRACE_WRAPPERS(WebGLRenderingContext) {
245 // Extensions are managed base WebGLRenderingContextBase. 243 // Extensions are managed base WebGLRenderingContextBase.
246 WebGLRenderingContextBase::traceWrappers(visitor); 244 WebGLRenderingContextBase::traceWrappers(visitor);
247 } 245 }
248 246
249 } // namespace blink 247 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698