| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 return CanvasRenderingContext::ContextWebgl; | 56 return CanvasRenderingContext::ContextWebgl; |
| 57 } | 57 } |
| 58 void onError(HTMLCanvasElement*, const String& error) override; | 58 void onError(HTMLCanvasElement*, const String& error) override; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 ~WebGLRenderingContext() override; | 61 ~WebGLRenderingContext() override; |
| 62 | 62 |
| 63 CanvasRenderingContext::ContextType getContextType() const override { | 63 CanvasRenderingContext::ContextType getContextType() const override { |
| 64 return CanvasRenderingContext::ContextWebgl; | 64 return CanvasRenderingContext::ContextWebgl; |
| 65 } | 65 } |
| 66 ImageBitmap* transferToImageBitmap(ExceptionState&) final; | 66 ImageBitmap* transferToImageBitmap() final; |
| 67 String contextName() const override { return "WebGLRenderingContext"; } | 67 String contextName() const override { return "WebGLRenderingContext"; } |
| 68 void registerContextExtensions() override; | 68 void registerContextExtensions() override; |
| 69 void setCanvasGetContextResult(RenderingContext&) final; | 69 void setCanvasGetContextResult(RenderingContext&) final; |
| 70 void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&) final; | 70 void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&) final; |
| 71 | 71 |
| 72 EAGERLY_FINALIZE(); | 72 EAGERLY_FINALIZE(); |
| 73 DECLARE_VIRTUAL_TRACE(); | 73 DECLARE_VIRTUAL_TRACE(); |
| 74 | 74 |
| 75 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 75 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 76 | 76 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 context, | 116 context, |
| 117 context->is3d() && | 117 context->is3d() && |
| 118 WebGLRenderingContextBase::getWebGLVersion(context) == 1, | 118 WebGLRenderingContextBase::getWebGLVersion(context) == 1, |
| 119 context.is3d() && | 119 context.is3d() && |
| 120 WebGLRenderingContextBase::getWebGLVersion(&context) == | 120 WebGLRenderingContextBase::getWebGLVersion(&context) == |
| 121 1); | 121 1); |
| 122 | 122 |
| 123 } // namespace blink | 123 } // namespace blink |
| 124 | 124 |
| 125 #endif // WebGLRenderingContext_h | 125 #endif // WebGLRenderingContext_h |
| OLD | NEW |