| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 Member<WebGLLoseContext> webgl_lose_context_; | 112 Member<WebGLLoseContext> webgl_lose_context_; |
| 113 Member<WebGLDebugRendererInfo> webgl_debug_renderer_info_; | 113 Member<WebGLDebugRendererInfo> webgl_debug_renderer_info_; |
| 114 Member<WebGLDebugShaders> webgl_debug_shaders_; | 114 Member<WebGLDebugShaders> webgl_debug_shaders_; |
| 115 Member<WebGLDrawBuffers> webgl_draw_buffers_; | 115 Member<WebGLDrawBuffers> webgl_draw_buffers_; |
| 116 Member<WebGLCompressedTextureASTC> webgl_compressed_texture_astc_; | 116 Member<WebGLCompressedTextureASTC> webgl_compressed_texture_astc_; |
| 117 Member<WebGLCompressedTextureATC> webgl_compressed_texture_atc_; | 117 Member<WebGLCompressedTextureATC> webgl_compressed_texture_atc_; |
| 118 Member<WebGLCompressedTextureETC> webgl_compressed_texture_etc_; | 118 Member<WebGLCompressedTextureETC> webgl_compressed_texture_etc_; |
| 119 Member<WebGLCompressedTextureETC1> webgl_compressed_texture_etc1_; | 119 Member<WebGLCompressedTextureETC1> webgl_compressed_texture_etc1_; |
| 120 Member<WebGLCompressedTexturePVRTC> webgl_compressed_texture_pvrtc_; | 120 Member<WebGLCompressedTexturePVRTC> webgl_compressed_texture_pvrtc_; |
| 121 Member<WebGLCompressedTextureS3TC> webgl_compressed_texture_s3tc_; | 121 Member<WebGLCompressedTextureS3TC> webgl_compressed_texture_s3tc_; |
| 122 Member<WebGLCompressedTextureS3TCsRGB> webgl_compressed_texture_s3t_cs_rgb_; | 122 Member<WebGLCompressedTextureS3TCsRGB> webgl_compressed_texture_s3tc_srgb_; |
| 123 Member<WebGLDepthTexture> webgl_depth_texture_; | 123 Member<WebGLDepthTexture> webgl_depth_texture_; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 DEFINE_TYPE_CASTS(WebGLRenderingContext, | 126 DEFINE_TYPE_CASTS(WebGLRenderingContext, |
| 127 CanvasRenderingContext, | 127 CanvasRenderingContext, |
| 128 context, | 128 context, |
| 129 context->Is3d() && | 129 context->Is3d() && |
| 130 WebGLRenderingContextBase::GetWebGLVersion(context) == 1, | 130 WebGLRenderingContextBase::GetWebGLVersion(context) == 1, |
| 131 context.Is3d() && | 131 context.Is3d() && |
| 132 WebGLRenderingContextBase::GetWebGLVersion(&context) == | 132 WebGLRenderingContextBase::GetWebGLVersion(&context) == |
| 133 1); | 133 1); |
| 134 | 134 |
| 135 } // namespace blink | 135 } // namespace blink |
| 136 | 136 |
| 137 #endif // WebGLRenderingContext_h | 137 #endif // WebGLRenderingContext_h |
| OLD | NEW |