| 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 | 341 |
| 342 void removeSharedObject(WebGLSharedObject*); | 342 void removeSharedObject(WebGLSharedObject*); |
| 343 void removeContextObject(WebGLContextObject*); | 343 void removeContextObject(WebGLContextObject*); |
| 344 | 344 |
| 345 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; } | 345 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; } |
| 346 | 346 |
| 347 // ActiveDOMObject notifications | 347 // ActiveDOMObject notifications |
| 348 virtual bool hasPendingActivity() const OVERRIDE; | 348 virtual bool hasPendingActivity() const OVERRIDE; |
| 349 virtual void stop() OVERRIDE; | 349 virtual void stop() OVERRIDE; |
| 350 | 350 |
| 351 void setSavingImage(bool isSaving) { m_savingImage = isSaving; } |
| 351 protected: | 352 protected: |
| 352 friend class WebGLDrawBuffers; | 353 friend class WebGLDrawBuffers; |
| 353 friend class WebGLFramebuffer; | 354 friend class WebGLFramebuffer; |
| 354 friend class WebGLObject; | 355 friend class WebGLObject; |
| 355 friend class OESVertexArrayObject; | 356 friend class OESVertexArrayObject; |
| 356 friend class WebGLDebugShaders; | 357 friend class WebGLDebugShaders; |
| 357 friend class WebGLCompressedTextureATC; | 358 friend class WebGLCompressedTextureATC; |
| 358 friend class WebGLCompressedTextureETC1; | 359 friend class WebGLCompressedTextureETC1; |
| 359 friend class WebGLCompressedTexturePVRTC; | 360 friend class WebGLCompressedTexturePVRTC; |
| 360 friend class WebGLCompressedTextureS3TC; | 361 friend class WebGLCompressedTextureS3TC; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 int m_numGLErrorsToConsoleAllowed; | 529 int m_numGLErrorsToConsoleAllowed; |
| 529 | 530 |
| 530 bool m_multisamplingAllowed; | 531 bool m_multisamplingAllowed; |
| 531 bool m_multisamplingObserverRegistered; | 532 bool m_multisamplingObserverRegistered; |
| 532 | 533 |
| 533 GLuint m_onePlusMaxEnabledAttribIndex; | 534 GLuint m_onePlusMaxEnabledAttribIndex; |
| 534 unsigned long m_onePlusMaxNonDefaultTextureUnit; | 535 unsigned long m_onePlusMaxNonDefaultTextureUnit; |
| 535 | 536 |
| 536 OwnPtr<Extensions3DUtil> m_extensionsUtil; | 537 OwnPtr<Extensions3DUtil> m_extensionsUtil; |
| 537 | 538 |
| 539 bool m_savingImage; |
| 540 |
| 538 enum ExtensionFlags { | 541 enum ExtensionFlags { |
| 539 ApprovedExtension = 0x00, | 542 ApprovedExtension = 0x00, |
| 540 // Extension that is behind the draft extensions runtime flag: | 543 // Extension that is behind the draft extensions runtime flag: |
| 541 DraftExtension = 0x01, | 544 DraftExtension = 0x01, |
| 542 // Extension that is still in draft state, but has been selectively enab
led by default under a prefix. Do not use | 545 // Extension that is still in draft state, but has been selectively enab
led by default under a prefix. Do not use |
| 543 // this for enabling new draft extensions; use the DraftExtension flag i
nstead, and do not use vendor prefixes: | 546 // this for enabling new draft extensions; use the DraftExtension flag i
nstead, and do not use vendor prefixes: |
| 544 EnabledDraftExtension = 0x04, | 547 EnabledDraftExtension = 0x04, |
| 545 }; | 548 }; |
| 546 | 549 |
| 547 class ExtensionTracker { | 550 class ExtensionTracker { |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 // If the vector is empty, return the maximum allowed active context number. | 905 // If the vector is empty, return the maximum allowed active context number. |
| 903 static size_t oldestContextIndex(); | 906 static size_t oldestContextIndex(); |
| 904 static IntSize oldestContextSize(); | 907 static IntSize oldestContextSize(); |
| 905 }; | 908 }; |
| 906 | 909 |
| 907 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 910 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
| 908 | 911 |
| 909 } // namespace WebCore | 912 } // namespace WebCore |
| 910 | 913 |
| 911 #endif // WebGLRenderingContextBase_h | 914 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |