| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #include "modules/webgl/WebGLCompressedTexturePVRTC.h" | 54 #include "modules/webgl/WebGLCompressedTexturePVRTC.h" |
| 55 #include "modules/webgl/WebGLCompressedTextureS3TC.h" | 55 #include "modules/webgl/WebGLCompressedTextureS3TC.h" |
| 56 #include "modules/webgl/WebGLCompressedTextureS3TCsRGB.h" | 56 #include "modules/webgl/WebGLCompressedTextureS3TCsRGB.h" |
| 57 #include "modules/webgl/WebGLContextEvent.h" | 57 #include "modules/webgl/WebGLContextEvent.h" |
| 58 #include "modules/webgl/WebGLDebugRendererInfo.h" | 58 #include "modules/webgl/WebGLDebugRendererInfo.h" |
| 59 #include "modules/webgl/WebGLDebugShaders.h" | 59 #include "modules/webgl/WebGLDebugShaders.h" |
| 60 #include "modules/webgl/WebGLDepthTexture.h" | 60 #include "modules/webgl/WebGLDepthTexture.h" |
| 61 #include "modules/webgl/WebGLDrawBuffers.h" | 61 #include "modules/webgl/WebGLDrawBuffers.h" |
| 62 #include "modules/webgl/WebGLLoseContext.h" | 62 #include "modules/webgl/WebGLLoseContext.h" |
| 63 #include "platform/graphics/gpu/DrawingBuffer.h" | 63 #include "platform/graphics/gpu/DrawingBuffer.h" |
| 64 #include "platform/wtf/CheckedNumeric.h" |
| 64 #include "public/platform/Platform.h" | 65 #include "public/platform/Platform.h" |
| 65 #include "public/platform/WebGraphicsContext3DProvider.h" | 66 #include "public/platform/WebGraphicsContext3DProvider.h" |
| 66 #include "wtf/CheckedNumeric.h" | |
| 67 | 67 |
| 68 namespace blink { | 68 namespace blink { |
| 69 | 69 |
| 70 // An helper function for the two create() methods. The return value is an | 70 // An helper function for the two create() methods. The return value is an |
| 71 // indicate of whether the create() should return nullptr or not. | 71 // indicate of whether the create() should return nullptr or not. |
| 72 static bool ShouldCreateContext( | 72 static bool ShouldCreateContext( |
| 73 WebGraphicsContext3DProvider* context_provider) { | 73 WebGraphicsContext3DProvider* context_provider) { |
| 74 if (!context_provider) | 74 if (!context_provider) |
| 75 return false; | 75 return false; |
| 76 gpu::gles2::GLES2Interface* gl = context_provider->ContextGL(); | 76 gpu::gles2::GLES2Interface* gl = context_provider->ContextGL(); |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 visitor->Trace(webgl_depth_texture_); | 238 visitor->Trace(webgl_depth_texture_); |
| 239 WebGLRenderingContextBase::Trace(visitor); | 239 WebGLRenderingContextBase::Trace(visitor); |
| 240 } | 240 } |
| 241 | 241 |
| 242 DEFINE_TRACE_WRAPPERS(WebGLRenderingContext) { | 242 DEFINE_TRACE_WRAPPERS(WebGLRenderingContext) { |
| 243 // Extensions are managed base WebGLRenderingContextBase. | 243 // Extensions are managed base WebGLRenderingContextBase. |
| 244 WebGLRenderingContextBase::TraceWrappers(visitor); | 244 WebGLRenderingContextBase::TraceWrappers(visitor); |
| 245 } | 245 } |
| 246 | 246 |
| 247 } // namespace blink | 247 } // namespace blink |
| OLD | NEW |