| 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> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 return CanvasRenderingContext::ContextWebgl2; | 32 return CanvasRenderingContext::ContextWebgl2; |
| 33 } | 33 } |
| 34 void onError(HTMLCanvasElement*, const String& error) override; | 34 void onError(HTMLCanvasElement*, const String& error) override; |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 ~WebGL2RenderingContext() override; | 37 ~WebGL2RenderingContext() override; |
| 38 | 38 |
| 39 CanvasRenderingContext::ContextType getContextType() const override { | 39 CanvasRenderingContext::ContextType getContextType() const override { |
| 40 return CanvasRenderingContext::ContextWebgl2; | 40 return CanvasRenderingContext::ContextWebgl2; |
| 41 } | 41 } |
| 42 ImageBitmap* transferToImageBitmap(ExceptionState&) final; | 42 ImageBitmap* transferToImageBitmap() final; |
| 43 String contextName() const override { return "WebGL2RenderingContext"; } | 43 String contextName() const override { return "WebGL2RenderingContext"; } |
| 44 void registerContextExtensions() override; | 44 void registerContextExtensions() override; |
| 45 void setCanvasGetContextResult(RenderingContext&) final; | 45 void setCanvasGetContextResult(RenderingContext&) final; |
| 46 void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&) final; | 46 void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&) final; |
| 47 | 47 |
| 48 DECLARE_VIRTUAL_TRACE(); | 48 DECLARE_VIRTUAL_TRACE(); |
| 49 | 49 |
| 50 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 50 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 51 | 51 |
| 52 protected: | 52 protected: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 76 context, | 76 context, |
| 77 context->is3d() && | 77 context->is3d() && |
| 78 WebGLRenderingContextBase::getWebGLVersion(context) == 2, | 78 WebGLRenderingContextBase::getWebGLVersion(context) == 2, |
| 79 context.is3d() && | 79 context.is3d() && |
| 80 WebGLRenderingContextBase::getWebGLVersion(&context) == | 80 WebGLRenderingContextBase::getWebGLVersion(&context) == |
| 81 2); | 81 2); |
| 82 | 82 |
| 83 } // namespace blink | 83 } // namespace blink |
| 84 | 84 |
| 85 #endif | 85 #endif |
| OLD | NEW |