| 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 | 317 |
| 318 void removeSharedObject(WebGLSharedObject*); | 318 void removeSharedObject(WebGLSharedObject*); |
| 319 void removeContextObject(WebGLContextObject*); | 319 void removeContextObject(WebGLContextObject*); |
| 320 | 320 |
| 321 unsigned getMaxVertexAttribs() const { return m_maxVertexAttribs; } | 321 unsigned getMaxVertexAttribs() const { return m_maxVertexAttribs; } |
| 322 | 322 |
| 323 // ActiveDOMObject notifications | 323 // ActiveDOMObject notifications |
| 324 virtual bool hasPendingActivity() const; | 324 virtual bool hasPendingActivity() const; |
| 325 virtual void stop(); | 325 virtual void stop(); |
| 326 | 326 |
| 327 static void forciblyLoseOldestContext(); |
| 328 static IntSize oldestContextSize(); |
| 329 |
| 327 private: | 330 private: |
| 328 friend class EXTDrawBuffers; | 331 friend class EXTDrawBuffers; |
| 329 friend class WebGLFramebuffer; | 332 friend class WebGLFramebuffer; |
| 330 friend class WebGLObject; | 333 friend class WebGLObject; |
| 331 friend class OESVertexArrayObject; | 334 friend class OESVertexArrayObject; |
| 332 friend class WebGLDebugShaders; | 335 friend class WebGLDebugShaders; |
| 333 friend class WebGLCompressedTextureATC; | 336 friend class WebGLCompressedTextureATC; |
| 334 friend class WebGLCompressedTexturePVRTC; | 337 friend class WebGLCompressedTexturePVRTC; |
| 335 friend class WebGLCompressedTextureS3TC; | 338 friend class WebGLCompressedTextureS3TC; |
| 336 friend class WebGLRenderingContextErrorMessageCallback; | 339 friend class WebGLRenderingContextErrorMessageCallback; |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 | 778 |
| 776 void setBackDrawBuffer(GC3Denum); | 779 void setBackDrawBuffer(GC3Denum); |
| 777 | 780 |
| 778 void restoreCurrentFramebuffer(); | 781 void restoreCurrentFramebuffer(); |
| 779 void restoreCurrentTexture2D(); | 782 void restoreCurrentTexture2D(); |
| 780 | 783 |
| 781 // Check if EXT_draw_buffers extension is supported and if it satisfies the
WebGL requirements. | 784 // Check if EXT_draw_buffers extension is supported and if it satisfies the
WebGL requirements. |
| 782 bool supportsDrawBuffers(); | 785 bool supportsDrawBuffers(); |
| 783 | 786 |
| 784 friend class WebGLStateRestorer; | 787 friend class WebGLStateRestorer; |
| 788 |
| 789 static Vector<WebGLRenderingContext*>& activeContexts(); |
| 790 static Vector<WebGLRenderingContext*>& forciblyEvictedContexts(); |
| 791 |
| 792 static void activateContext(WebGLRenderingContext*); |
| 793 static void deactivateContext(WebGLRenderingContext*, bool addToInactiveList
); |
| 794 static void willDestroyContext(WebGLRenderingContext*); |
| 785 }; | 795 }; |
| 786 | 796 |
| 787 } // namespace WebCore | 797 } // namespace WebCore |
| 788 | 798 |
| 789 #endif | 799 #endif |
| OLD | NEW |