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