| OLD | NEW | 
|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef WebGL2RenderingContext_h | 5 #ifndef WebGL2RenderingContext_h | 
| 6 #define WebGL2RenderingContext_h | 6 #define WebGL2RenderingContext_h | 
| 7 | 7 | 
| 8 #include "core/html/canvas/CanvasRenderingContextFactory.h" | 8 #include "core/html/canvas/CanvasRenderingContextFactory.h" | 
| 9 #include "modules/webgl/WebGL2RenderingContextBase.h" | 9 #include "modules/webgl/WebGL2RenderingContextBase.h" | 
| 10 #include <memory> | 10 #include <memory> | 
| 11 | 11 | 
| 12 namespace blink { | 12 namespace blink { | 
| 13 | 13 | 
| 14 class CanvasContextCreationAttributes; | 14 class CanvasContextCreationAttributes; | 
| 15 class EXTColorBufferFloat; | 15 class EXTColorBufferFloat; | 
|  | 16 class EXTTextureFilterAnisotropic; | 
|  | 17 class OESTextureFloatLinear; | 
|  | 18 class WebGLDebugRendererInfo; | 
|  | 19 class WebGLLoseContext; | 
| 16 | 20 | 
| 17 class WebGL2RenderingContext : public WebGL2RenderingContextBase { | 21 class WebGL2RenderingContext : public WebGL2RenderingContextBase { | 
| 18   DEFINE_WRAPPERTYPEINFO(); | 22   DEFINE_WRAPPERTYPEINFO(); | 
| 19 | 23 | 
| 20  public: | 24  public: | 
| 21   class Factory : public CanvasRenderingContextFactory { | 25   class Factory : public CanvasRenderingContextFactory { | 
| 22     WTF_MAKE_NONCOPYABLE(Factory); | 26     WTF_MAKE_NONCOPYABLE(Factory); | 
| 23 | 27 | 
| 24    public: | 28    public: | 
| 25     Factory() {} | 29     Factory() {} | 
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 76                   context, | 80                   context, | 
| 77                   context->is3d() && | 81                   context->is3d() && | 
| 78                       WebGLRenderingContextBase::getWebGLVersion(context) == 2, | 82                       WebGLRenderingContextBase::getWebGLVersion(context) == 2, | 
| 79                   context.is3d() && | 83                   context.is3d() && | 
| 80                       WebGLRenderingContextBase::getWebGLVersion(&context) == | 84                       WebGLRenderingContextBase::getWebGLVersion(&context) == | 
| 81                           2); | 85                           2); | 
| 82 | 86 | 
| 83 }  // namespace blink | 87 }  // namespace blink | 
| 84 | 88 | 
| 85 #endif | 89 #endif | 
| OLD | NEW | 
|---|