| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 class WebGLSharedObject; | 97 class WebGLSharedObject; |
| 98 class WebGLSharedWebGraphicsContext3D; | 98 class WebGLSharedWebGraphicsContext3D; |
| 99 class WebGLTexture; | 99 class WebGLTexture; |
| 100 class WebGLUniformLocation; | 100 class WebGLUniformLocation; |
| 101 class WebGLVertexArrayObjectOES; | 101 class WebGLVertexArrayObjectOES; |
| 102 | 102 |
| 103 class WebGLRenderingContextLostCallback; | 103 class WebGLRenderingContextLostCallback; |
| 104 class WebGLRenderingContextErrorMessageCallback; | 104 class WebGLRenderingContextErrorMessageCallback; |
| 105 | 105 |
| 106 class WebGLRenderingContextBase : public CanvasRenderingContext, public Page::Mu
ltisamplingChangedObserver, public ScriptWrappable { | 106 class WebGLRenderingContextBase : public CanvasRenderingContext, public Page::Mu
ltisamplingChangedObserver, public ScriptWrappable { |
| 107 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebGLRenderingContextBase); | 107 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN_NESTED(WebGLRenderingContextBase, Canv
asRenderingContext); |
| 108 public: | 108 public: |
| 109 virtual ~WebGLRenderingContextBase(); | 109 virtual ~WebGLRenderingContextBase(); |
| 110 | 110 |
| 111 virtual unsigned version() const = 0; | 111 virtual unsigned version() const = 0; |
| 112 virtual String contextName() const = 0; | 112 virtual String contextName() const = 0; |
| 113 virtual void registerContextExtensions() = 0; | 113 virtual void registerContextExtensions() = 0; |
| 114 | 114 |
| 115 static unsigned getWebGLVersion(const CanvasRenderingContext*); | 115 static unsigned getWebGLVersion(const CanvasRenderingContext*); |
| 116 | 116 |
| 117 static PassOwnPtr<blink::WebGraphicsContext3D> createWebGraphicsContext3D(HT
MLCanvasElement*, WebGLContextAttributes, unsigned webGLVersion); | 117 static PassOwnPtr<blink::WebGraphicsContext3D> createWebGraphicsContext3D(HT
MLCanvasElement*, WebGLContextAttributes, unsigned webGLVersion); |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 987 static IntSize oldestContextSize(); | 987 static IntSize oldestContextSize(); |
| 988 }; | 988 }; |
| 989 | 989 |
| 990 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 990 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
| 991 | 991 |
| 992 } // namespace blink | 992 } // namespace blink |
| 993 | 993 |
| 994 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 994 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
| 995 | 995 |
| 996 #endif // WebGLRenderingContextBase_h | 996 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |