| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #ifndef WebGLRenderingContext_h | 26 #ifndef WebGLRenderingContext_h |
| 27 #define WebGLRenderingContext_h | 27 #define WebGLRenderingContext_h |
| 28 | 28 |
| 29 #include "core/html/canvas/CanvasRenderingContextFactory.h" | 29 #include "core/html/canvas/CanvasRenderingContextFactory.h" |
| 30 #include "modules/webgl/WebGLRenderingContextBase.h" | 30 #include "modules/webgl/WebGLRenderingContextBase.h" |
| 31 #include <memory> | 31 #include <memory> |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class ANGLEInstancedArrays; |
| 35 class CanvasContextCreationAttributes; | 36 class CanvasContextCreationAttributes; |
| 37 class EXTBlendMinMax; |
| 38 class EXTFragDepth; |
| 39 class EXTShaderTextureLOD; |
| 40 class EXTTextureFilterAnisotropic; |
| 41 class OESElementIndexUint; |
| 42 class OESStandardDerivatives; |
| 43 class OESTextureFloatLinear; |
| 44 class OESTextureHalfFloatLinear; |
| 45 class WebGLDebugRendererInfo; |
| 46 class WebGLLoseContext; |
| 36 | 47 |
| 37 class WebGLRenderingContext final : public WebGLRenderingContextBase { | 48 class WebGLRenderingContext final : public WebGLRenderingContextBase { |
| 38 DEFINE_WRAPPERTYPEINFO(); | 49 DEFINE_WRAPPERTYPEINFO(); |
| 39 | 50 |
| 40 public: | 51 public: |
| 41 class Factory : public CanvasRenderingContextFactory { | 52 class Factory : public CanvasRenderingContextFactory { |
| 42 WTF_MAKE_NONCOPYABLE(Factory); | 53 WTF_MAKE_NONCOPYABLE(Factory); |
| 43 | 54 |
| 44 public: | 55 public: |
| 45 Factory() {} | 56 Factory() {} |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 context, | 127 context, |
| 117 context->is3d() && | 128 context->is3d() && |
| 118 WebGLRenderingContextBase::getWebGLVersion(context) == 1, | 129 WebGLRenderingContextBase::getWebGLVersion(context) == 1, |
| 119 context.is3d() && | 130 context.is3d() && |
| 120 WebGLRenderingContextBase::getWebGLVersion(&context) == | 131 WebGLRenderingContextBase::getWebGLVersion(&context) == |
| 121 1); | 132 1); |
| 122 | 133 |
| 123 } // namespace blink | 134 } // namespace blink |
| 124 | 135 |
| 125 #endif // WebGLRenderingContext_h | 136 #endif // WebGLRenderingContext_h |
| OLD | NEW |