OLD | NEW |
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "core/html/canvas/WebGLCompressedTextureATC.h" | 46 #include "core/html/canvas/WebGLCompressedTextureATC.h" |
47 #include "core/html/canvas/WebGLCompressedTextureETC1.h" | 47 #include "core/html/canvas/WebGLCompressedTextureETC1.h" |
48 #include "core/html/canvas/WebGLCompressedTexturePVRTC.h" | 48 #include "core/html/canvas/WebGLCompressedTexturePVRTC.h" |
49 #include "core/html/canvas/WebGLCompressedTextureS3TC.h" | 49 #include "core/html/canvas/WebGLCompressedTextureS3TC.h" |
50 #include "core/html/canvas/WebGLContextEvent.h" | 50 #include "core/html/canvas/WebGLContextEvent.h" |
51 #include "core/html/canvas/WebGLDebugRendererInfo.h" | 51 #include "core/html/canvas/WebGLDebugRendererInfo.h" |
52 #include "core/html/canvas/WebGLDebugShaders.h" | 52 #include "core/html/canvas/WebGLDebugShaders.h" |
53 #include "core/html/canvas/WebGLDepthTexture.h" | 53 #include "core/html/canvas/WebGLDepthTexture.h" |
54 #include "core/html/canvas/WebGLDrawBuffers.h" | 54 #include "core/html/canvas/WebGLDrawBuffers.h" |
55 #include "core/html/canvas/WebGLLoseContext.h" | 55 #include "core/html/canvas/WebGLLoseContext.h" |
| 56 #include "core/layout/LayoutBox.h" |
56 #include "core/loader/FrameLoader.h" | 57 #include "core/loader/FrameLoader.h" |
57 #include "core/loader/FrameLoaderClient.h" | 58 #include "core/loader/FrameLoaderClient.h" |
58 #include "core/rendering/RenderBox.h" | |
59 #include "platform/CheckedInt.h" | 59 #include "platform/CheckedInt.h" |
60 #include "platform/graphics/gpu/DrawingBuffer.h" | 60 #include "platform/graphics/gpu/DrawingBuffer.h" |
61 #include "public/platform/Platform.h" | 61 #include "public/platform/Platform.h" |
62 | 62 |
63 namespace blink { | 63 namespace blink { |
64 | 64 |
65 PassOwnPtrWillBeRawPtr<WebGLRenderingContext> WebGLRenderingContext::create(HTML
CanvasElement* canvas, const CanvasContextCreationAttributes& attrs) | 65 PassOwnPtrWillBeRawPtr<WebGLRenderingContext> WebGLRenderingContext::create(HTML
CanvasElement* canvas, const CanvasContextCreationAttributes& attrs) |
66 { | 66 { |
67 WebGLContextAttributes attributes = toWebGLContextAttributes(attrs); | 67 WebGLContextAttributes attributes = toWebGLContextAttributes(attrs); |
68 OwnPtr<blink::WebGraphicsContext3D> context(createWebGraphicsContext3D(canva
s, attributes, 1)); | 68 OwnPtr<blink::WebGraphicsContext3D> context(createWebGraphicsContext3D(canva
s, attributes, 1)); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 visitor->trace(m_webglDrawBuffers); | 149 visitor->trace(m_webglDrawBuffers); |
150 visitor->trace(m_webglCompressedTextureATC); | 150 visitor->trace(m_webglCompressedTextureATC); |
151 visitor->trace(m_webglCompressedTextureETC1); | 151 visitor->trace(m_webglCompressedTextureETC1); |
152 visitor->trace(m_webglCompressedTexturePVRTC); | 152 visitor->trace(m_webglCompressedTexturePVRTC); |
153 visitor->trace(m_webglCompressedTextureS3TC); | 153 visitor->trace(m_webglCompressedTextureS3TC); |
154 visitor->trace(m_webglDepthTexture); | 154 visitor->trace(m_webglDepthTexture); |
155 WebGLRenderingContextBase::trace(visitor); | 155 WebGLRenderingContextBase::trace(visitor); |
156 } | 156 } |
157 | 157 |
158 } // namespace blink | 158 } // namespace blink |
OLD | NEW |