| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 class WebGLSharedObject; | 92 class WebGLSharedObject; |
| 93 class WebGLSharedWebGraphicsContext3D; | 93 class WebGLSharedWebGraphicsContext3D; |
| 94 class WebGLTexture; | 94 class WebGLTexture; |
| 95 class WebGLUniformLocation; | 95 class WebGLUniformLocation; |
| 96 class WebGLVertexArrayObjectOES; | 96 class WebGLVertexArrayObjectOES; |
| 97 | 97 |
| 98 class WebGLRenderingContextLostCallback; | 98 class WebGLRenderingContextLostCallback; |
| 99 class WebGLRenderingContextErrorMessageCallback; | 99 class WebGLRenderingContextErrorMessageCallback; |
| 100 | 100 |
| 101 class WebGLRenderingContextBase: public CanvasRenderingContext, public ActiveDOM
Object, public Page::MultisamplingChangedObserver { | 101 class WebGLRenderingContextBase: public CanvasRenderingContext, public ActiveDOM
Object, public Page::MultisamplingChangedObserver { |
| 102 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebGLRenderingContextBase); | |
| 103 public: | 102 public: |
| 104 virtual ~WebGLRenderingContextBase(); | 103 virtual ~WebGLRenderingContextBase(); |
| 105 | 104 |
| 106 virtual unsigned version() const = 0; | 105 virtual unsigned version() const = 0; |
| 107 virtual String contextName() const = 0; | 106 virtual String contextName() const = 0; |
| 108 virtual void registerContextExtensions() = 0; | 107 virtual void registerContextExtensions() = 0; |
| 109 | 108 |
| 110 static unsigned getWebGLVersion(const CanvasRenderingContext*); | 109 static unsigned getWebGLVersion(const CanvasRenderingContext*); |
| 111 | 110 |
| 112 int drawingBufferWidth() const; | 111 int drawingBufferWidth() const; |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 OwnPtr<Extensions3DUtil> m_extensionsUtil; | 565 OwnPtr<Extensions3DUtil> m_extensionsUtil; |
| 567 | 566 |
| 568 bool m_savingImage; | 567 bool m_savingImage; |
| 569 | 568 |
| 570 enum ExtensionFlags { | 569 enum ExtensionFlags { |
| 571 ApprovedExtension = 0x00, | 570 ApprovedExtension = 0x00, |
| 572 // Extension that is behind the draft extensions runtime flag: | 571 // Extension that is behind the draft extensions runtime flag: |
| 573 DraftExtension = 0x01, | 572 DraftExtension = 0x01, |
| 574 }; | 573 }; |
| 575 | 574 |
| 576 class ExtensionTracker : public DummyBase<ExtensionTracker> { | 575 class ExtensionTracker { |
| 577 public: | 576 public: |
| 578 ExtensionTracker(ExtensionFlags flags, const char* const* prefixes) | 577 ExtensionTracker(ExtensionFlags flags, const char* const* prefixes) |
| 579 : m_draft(flags & DraftExtension) | 578 : m_draft(flags & DraftExtension) |
| 580 , m_prefixes(prefixes) | 579 , m_prefixes(prefixes) |
| 581 { | 580 { |
| 582 } | 581 } |
| 583 | 582 |
| 584 #if !ENABLE(OILPAN) | 583 #if !ENABLE(OILPAN) |
| 585 virtual ~ExtensionTracker() | 584 virtual ~ExtensionTracker() |
| 586 { | 585 { |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 static IntSize oldestContextSize(); | 945 static IntSize oldestContextSize(); |
| 947 }; | 946 }; |
| 948 | 947 |
| 949 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 948 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
| 950 | 949 |
| 951 } // namespace blink | 950 } // namespace blink |
| 952 | 951 |
| 953 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 952 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
| 954 | 953 |
| 955 #endif // WebGLRenderingContextBase_h | 954 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |