| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 #include "modules/webgl/WebGLCompressedTextureATC.h" | 50 #include "modules/webgl/WebGLCompressedTextureATC.h" |
| 51 #include "modules/webgl/WebGLCompressedTextureETC1.h" | 51 #include "modules/webgl/WebGLCompressedTextureETC1.h" |
| 52 #include "modules/webgl/WebGLCompressedTexturePVRTC.h" | 52 #include "modules/webgl/WebGLCompressedTexturePVRTC.h" |
| 53 #include "modules/webgl/WebGLCompressedTextureS3TC.h" | 53 #include "modules/webgl/WebGLCompressedTextureS3TC.h" |
| 54 #include "modules/webgl/WebGLContextEvent.h" | 54 #include "modules/webgl/WebGLContextEvent.h" |
| 55 #include "modules/webgl/WebGLDebugRendererInfo.h" | 55 #include "modules/webgl/WebGLDebugRendererInfo.h" |
| 56 #include "modules/webgl/WebGLDebugShaders.h" | 56 #include "modules/webgl/WebGLDebugShaders.h" |
| 57 #include "modules/webgl/WebGLDepthTexture.h" | 57 #include "modules/webgl/WebGLDepthTexture.h" |
| 58 #include "modules/webgl/WebGLDrawBuffers.h" | 58 #include "modules/webgl/WebGLDrawBuffers.h" |
| 59 #include "modules/webgl/WebGLLoseContext.h" | 59 #include "modules/webgl/WebGLLoseContext.h" |
| 60 #include "platform/CheckedInt.h" | |
| 61 #include "platform/graphics/gpu/DrawingBuffer.h" | 60 #include "platform/graphics/gpu/DrawingBuffer.h" |
| 62 #include "public/platform/Platform.h" | 61 #include "public/platform/Platform.h" |
| 63 #include "public/platform/WebGraphicsContext3DProvider.h" | 62 #include "public/platform/WebGraphicsContext3DProvider.h" |
| 63 #include "wtf/CheckedNumeric.h" |
| 64 #include <memory> | 64 #include <memory> |
| 65 | 65 |
| 66 namespace blink { | 66 namespace blink { |
| 67 | 67 |
| 68 // An helper function for the two create() methods. The return value is an | 68 // An helper function for the two create() methods. The return value is an |
| 69 // indicate of whether the create() should return nullptr or not. | 69 // indicate of whether the create() should return nullptr or not. |
| 70 static bool shouldCreateContext(WebGraphicsContext3DProvider* contextProvider) | 70 static bool shouldCreateContext(WebGraphicsContext3DProvider* contextProvider) |
| 71 { | 71 { |
| 72 if (!contextProvider) | 72 if (!contextProvider) |
| 73 return false; | 73 return false; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 visitor->traceWrappers(m_webglDebugShaders); | 229 visitor->traceWrappers(m_webglDebugShaders); |
| 230 visitor->traceWrappers(m_webglDrawBuffers); | 230 visitor->traceWrappers(m_webglDrawBuffers); |
| 231 visitor->traceWrappers(m_webglCompressedTextureASTC); | 231 visitor->traceWrappers(m_webglCompressedTextureASTC); |
| 232 visitor->traceWrappers(m_webglCompressedTextureATC); | 232 visitor->traceWrappers(m_webglCompressedTextureATC); |
| 233 visitor->traceWrappers(m_webglCompressedTextureETC1); | 233 visitor->traceWrappers(m_webglCompressedTextureETC1); |
| 234 visitor->traceWrappers(m_webglCompressedTexturePVRTC); | 234 visitor->traceWrappers(m_webglCompressedTexturePVRTC); |
| 235 visitor->traceWrappers(m_webglCompressedTextureS3TC); | 235 visitor->traceWrappers(m_webglCompressedTextureS3TC); |
| 236 visitor->traceWrappers(m_webglDepthTexture); | 236 visitor->traceWrappers(m_webglDepthTexture); |
| 237 } | 237 } |
| 238 } // namespace blink | 238 } // namespace blink |
| OLD | NEW |