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

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

Issue 2856743002: Clean up bindings/core/v8 (Part 4) (Closed)
Patch Set: Rebase Created 3 years, 7 months 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
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10 matching lines...) Expand all
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "modules/webgl/WebGLRenderingContextBase.h" 26 #include "modules/webgl/WebGLRenderingContextBase.h"
27 27
28 #include <memory> 28 #include <memory>
29 #include "bindings/core/v8/ExceptionMessages.h" 29 #include "bindings/core/v8/ExceptionMessages.h"
30 #include "bindings/core/v8/ExceptionState.h" 30 #include "bindings/core/v8/ExceptionState.h"
31 #include "bindings/core/v8/V8BindingMacros.h"
32 #include "bindings/modules/v8/HTMLCanvasElementOrOffscreenCanvas.h" 31 #include "bindings/modules/v8/HTMLCanvasElementOrOffscreenCanvas.h"
33 #include "bindings/modules/v8/WebGLAny.h" 32 #include "bindings/modules/v8/WebGLAny.h"
34 #include "core/dom/ArrayBufferViewHelpers.h" 33 #include "core/dom/ArrayBufferViewHelpers.h"
35 #include "core/dom/DOMArrayBuffer.h" 34 #include "core/dom/DOMArrayBuffer.h"
36 #include "core/dom/DOMTypedArray.h" 35 #include "core/dom/DOMTypedArray.h"
37 #include "core/dom/ExecutionContext.h" 36 #include "core/dom/ExecutionContext.h"
38 #include "core/dom/FlexibleArrayBufferView.h" 37 #include "core/dom/FlexibleArrayBufferView.h"
39 #include "core/dom/TaskRunnerHelper.h" 38 #include "core/dom/TaskRunnerHelper.h"
40 #include "core/frame/ImageBitmap.h" 39 #include "core/frame/ImageBitmap.h"
41 #include "core/frame/LocalFrame.h" 40 #include "core/frame/LocalFrame.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 #include "modules/webgl/WebGLRenderbuffer.h" 85 #include "modules/webgl/WebGLRenderbuffer.h"
87 #include "modules/webgl/WebGLShader.h" 86 #include "modules/webgl/WebGLShader.h"
88 #include "modules/webgl/WebGLShaderPrecisionFormat.h" 87 #include "modules/webgl/WebGLShaderPrecisionFormat.h"
89 #include "modules/webgl/WebGLUniformLocation.h" 88 #include "modules/webgl/WebGLUniformLocation.h"
90 #include "modules/webgl/WebGLVertexArrayObject.h" 89 #include "modules/webgl/WebGLVertexArrayObject.h"
91 #include "modules/webgl/WebGLVertexArrayObjectOES.h" 90 #include "modules/webgl/WebGLVertexArrayObjectOES.h"
92 #include "platform/CrossThreadFunctional.h" 91 #include "platform/CrossThreadFunctional.h"
93 #include "platform/RuntimeEnabledFeatures.h" 92 #include "platform/RuntimeEnabledFeatures.h"
94 #include "platform/WaitableEvent.h" 93 #include "platform/WaitableEvent.h"
95 #include "platform/bindings/ScriptWrappableVisitor.h" 94 #include "platform/bindings/ScriptWrappableVisitor.h"
95 #include "platform/bindings/V8BindingMacros.h"
96 #include "platform/geometry/IntSize.h" 96 #include "platform/geometry/IntSize.h"
97 #include "platform/graphics/GraphicsContext.h" 97 #include "platform/graphics/GraphicsContext.h"
98 #include "platform/graphics/UnacceleratedImageBufferSurface.h" 98 #include "platform/graphics/UnacceleratedImageBufferSurface.h"
99 #include "platform/graphics/gpu/AcceleratedImageBufferSurface.h" 99 #include "platform/graphics/gpu/AcceleratedImageBufferSurface.h"
100 #include "platform/graphics/gpu/SharedGpuContext.h" 100 #include "platform/graphics/gpu/SharedGpuContext.h"
101 #include "platform/wtf/CheckedNumeric.h" 101 #include "platform/wtf/CheckedNumeric.h"
102 #include "platform/wtf/Functional.h" 102 #include "platform/wtf/Functional.h"
103 #include "platform/wtf/PtrUtil.h" 103 #include "platform/wtf/PtrUtil.h"
104 #include "platform/wtf/text/StringBuilder.h" 104 #include "platform/wtf/text/StringBuilder.h"
105 #include "platform/wtf/text/StringUTF8Adaptor.h" 105 #include "platform/wtf/text/StringUTF8Adaptor.h"
(...skipping 7720 matching lines...) Expand 10 before | Expand all | Expand 10 after
7826 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas( 7826 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas(
7827 HTMLCanvasElementOrOffscreenCanvas& result) const { 7827 HTMLCanvasElementOrOffscreenCanvas& result) const {
7828 if (canvas()) { 7828 if (canvas()) {
7829 result.setHTMLCanvasElement(static_cast<HTMLCanvasElement*>(host())); 7829 result.setHTMLCanvasElement(static_cast<HTMLCanvasElement*>(host()));
7830 } else { 7830 } else {
7831 result.setOffscreenCanvas(static_cast<OffscreenCanvas*>(host())); 7831 result.setOffscreenCanvas(static_cast<OffscreenCanvas*>(host()));
7832 } 7832 }
7833 } 7833 }
7834 7834
7835 } // namespace blink 7835 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698