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

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

Issue 2411703004: Add usage counter to OffscreenCanvas API calls (Closed)
Patch Set: fix compile error Created 4 years, 1 month 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 void WebGL2RenderingContext::setCanvasGetContextResult( 95 void WebGL2RenderingContext::setCanvasGetContextResult(
96 RenderingContext& result) { 96 RenderingContext& result) {
97 result.setWebGL2RenderingContext(this); 97 result.setWebGL2RenderingContext(this);
98 } 98 }
99 99
100 void WebGL2RenderingContext::setOffscreenCanvasGetContextResult( 100 void WebGL2RenderingContext::setOffscreenCanvasGetContextResult(
101 OffscreenRenderingContext& result) { 101 OffscreenRenderingContext& result) {
102 result.setWebGL2RenderingContext(this); 102 result.setWebGL2RenderingContext(this);
103 } 103 }
104 104
105 ImageBitmap* WebGL2RenderingContext::transferToImageBitmap() { 105 ImageBitmap* WebGL2RenderingContext::transferToImageBitmap(
106 ScriptState* scriptState) {
106 NOTIMPLEMENTED(); 107 NOTIMPLEMENTED();
107 return nullptr; 108 return nullptr;
108 } 109 }
109 110
110 void WebGL2RenderingContext::registerContextExtensions() { 111 void WebGL2RenderingContext::registerContextExtensions() {
111 // TODO(kainino): add DraftExtension flag to some of these before WebGL 2 112 // TODO(kainino): add DraftExtension flag to some of these before WebGL 2
112 // is rolled out. 113 // is rolled out.
113 // https://bugs.chromium.org/p/chromium/issues/detail?id=647892 114 // https://bugs.chromium.org/p/chromium/issues/detail?id=647892
114 115
115 // Register extensions. 116 // Register extensions.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 visitor->traceWrappers(m_webglCompressedTexturePVRTC); 161 visitor->traceWrappers(m_webglCompressedTexturePVRTC);
161 visitor->traceWrappers(m_webglCompressedTextureS3TC); 162 visitor->traceWrappers(m_webglCompressedTextureS3TC);
162 visitor->traceWrappers(m_webglCompressedTextureS3TCsRGB); 163 visitor->traceWrappers(m_webglCompressedTextureS3TCsRGB);
163 visitor->traceWrappers(m_webglDebugRendererInfo); 164 visitor->traceWrappers(m_webglDebugRendererInfo);
164 visitor->traceWrappers(m_webglDebugShaders); 165 visitor->traceWrappers(m_webglDebugShaders);
165 visitor->traceWrappers(m_webglLoseContext); 166 visitor->traceWrappers(m_webglLoseContext);
166 WebGL2RenderingContextBase::traceWrappers(visitor); 167 WebGL2RenderingContextBase::traceWrappers(visitor);
167 } 168 }
168 169
169 } // namespace blink 170 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698