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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 class WebGLShader; | 89 class WebGLShader; |
90 class WebGLShaderPrecisionFormat; | 90 class WebGLShaderPrecisionFormat; |
91 class WebGLSharedObject; | 91 class WebGLSharedObject; |
92 class WebGLTexture; | 92 class WebGLTexture; |
93 class WebGLUniformLocation; | 93 class WebGLUniformLocation; |
94 class WebGLVertexArrayObjectOES; | 94 class WebGLVertexArrayObjectOES; |
95 | 95 |
96 class WebGLRenderingContextLostCallback; | 96 class WebGLRenderingContextLostCallback; |
97 class WebGLRenderingContextErrorMessageCallback; | 97 class WebGLRenderingContextErrorMessageCallback; |
98 | 98 |
99 class WebGLRenderingContextBase: public CanvasRenderingContext, public ActiveDOM
Object, private Page::MultisamplingChangedObserver { | 99 class WebGLRenderingContextBase: public CanvasRenderingContext, public ActiveDOM
Object, public Page::MultisamplingChangedObserver { |
| 100 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebGLRenderingContextBase); |
100 public: | 101 public: |
101 virtual ~WebGLRenderingContextBase(); | 102 virtual ~WebGLRenderingContextBase(); |
102 | 103 |
103 virtual bool is3d() const OVERRIDE { return true; } | 104 virtual bool is3d() const OVERRIDE { return true; } |
104 virtual bool isAccelerated() const OVERRIDE { return true; } | 105 virtual bool isAccelerated() const OVERRIDE { return true; } |
105 virtual unsigned version() const = 0; | 106 virtual unsigned version() const = 0; |
106 virtual String contextName() const = 0; | 107 virtual String contextName() const = 0; |
107 virtual void registerContextExtensions() = 0; | 108 virtual void registerContextExtensions() = 0; |
108 | 109 |
109 static unsigned getWebGLVersion(const CanvasRenderingContext*); | 110 static unsigned getWebGLVersion(const CanvasRenderingContext*); |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 // If the vector is empty, return the maximum allowed active context number. | 917 // If the vector is empty, return the maximum allowed active context number. |
917 static size_t oldestContextIndex(); | 918 static size_t oldestContextIndex(); |
918 static IntSize oldestContextSize(); | 919 static IntSize oldestContextSize(); |
919 }; | 920 }; |
920 | 921 |
921 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 922 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
922 | 923 |
923 } // namespace WebCore | 924 } // namespace WebCore |
924 | 925 |
925 #endif // WebGLRenderingContextBase_h | 926 #endif // WebGLRenderingContextBase_h |
OLD | NEW |