| 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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 // object. | 594 // object. |
| 595 }; | 595 }; |
| 596 | 596 |
| 597 PassRefPtr<Image> getImage(AccelerationHint, SnapshotReason) const override; | 597 PassRefPtr<Image> getImage(AccelerationHint, SnapshotReason) const override; |
| 598 ImageData* toImageData(SnapshotReason) const override; | 598 ImageData* toImageData(SnapshotReason) const override; |
| 599 void setFilterQuality(SkFilterQuality) override; | 599 void setFilterQuality(SkFilterQuality) override; |
| 600 bool isWebGL2OrHigher() { return version() >= 2; } | 600 bool isWebGL2OrHigher() { return version() >= 2; } |
| 601 | 601 |
| 602 void getHTMLOrOffscreenCanvas(HTMLCanvasElementOrOffscreenCanvas&) const; | 602 void getHTMLOrOffscreenCanvas(HTMLCanvasElementOrOffscreenCanvas&) const; |
| 603 | 603 |
| 604 void commit(ExceptionState&); | 604 void commit(ScriptState*, ExceptionState&); |
| 605 | 605 |
| 606 protected: | 606 protected: |
| 607 friend class EXTDisjointTimerQuery; | 607 friend class EXTDisjointTimerQuery; |
| 608 friend class WebGLDrawBuffers; | 608 friend class WebGLDrawBuffers; |
| 609 friend class WebGLFramebuffer; | 609 friend class WebGLFramebuffer; |
| 610 friend class WebGLObject; | 610 friend class WebGLObject; |
| 611 friend class WebGLContextObject; | 611 friend class WebGLContextObject; |
| 612 friend class OESVertexArrayObject; | 612 friend class OESVertexArrayObject; |
| 613 friend class WebGLDebugShaders; | 613 friend class WebGLDebugShaders; |
| 614 friend class WebGLCompressedTextureASTC; | 614 friend class WebGLCompressedTextureASTC; |
| (...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1451 static void addToEvictedList(WebGLRenderingContextBase*); | 1451 static void addToEvictedList(WebGLRenderingContextBase*); |
| 1452 static void removeFromEvictedList(WebGLRenderingContextBase*); | 1452 static void removeFromEvictedList(WebGLRenderingContextBase*); |
| 1453 static void willDestroyContext(WebGLRenderingContextBase*); | 1453 static void willDestroyContext(WebGLRenderingContextBase*); |
| 1454 static void forciblyLoseOldestContext(const String& reason); | 1454 static void forciblyLoseOldestContext(const String& reason); |
| 1455 // Return the least recently used context's position in the active context | 1455 // Return the least recently used context's position in the active context |
| 1456 // vector. If the vector is empty, return the maximum allowed active context | 1456 // vector. If the vector is empty, return the maximum allowed active context |
| 1457 // number. | 1457 // number. |
| 1458 static WebGLRenderingContextBase* oldestContext(); | 1458 static WebGLRenderingContextBase* oldestContext(); |
| 1459 static WebGLRenderingContextBase* oldestEvictedContext(); | 1459 static WebGLRenderingContextBase* oldestEvictedContext(); |
| 1460 | 1460 |
| 1461 ImageBitmap* transferToImageBitmapBase(); | 1461 ImageBitmap* transferToImageBitmapBase(ScriptState*); |
| 1462 | 1462 |
| 1463 // Helper functions for tex(Sub)Image2D && texSubImage3D | 1463 // Helper functions for tex(Sub)Image2D && texSubImage3D |
| 1464 void texImageHelperDOMArrayBufferView(TexImageFunctionID, | 1464 void texImageHelperDOMArrayBufferView(TexImageFunctionID, |
| 1465 GLenum, | 1465 GLenum, |
| 1466 GLint, | 1466 GLint, |
| 1467 GLint, | 1467 GLint, |
| 1468 GLsizei, | 1468 GLsizei, |
| 1469 GLsizei, | 1469 GLsizei, |
| 1470 GLsizei, | 1470 GLsizei, |
| 1471 GLint, | 1471 GLint, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1559 context, | 1559 context, |
| 1560 context->is3d(), | 1560 context->is3d(), |
| 1561 context.is3d()); | 1561 context.is3d()); |
| 1562 | 1562 |
| 1563 } // namespace blink | 1563 } // namespace blink |
| 1564 | 1564 |
| 1565 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( | 1565 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( |
| 1566 blink::WebGLRenderingContextBase::TextureUnitState); | 1566 blink::WebGLRenderingContextBase::TextureUnitState); |
| 1567 | 1567 |
| 1568 #endif // WebGLRenderingContextBase_h | 1568 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |