| 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 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1534 GLenum, | 1534 GLenum, |
| 1535 GLint, | 1535 GLint, |
| 1536 GLint, | 1536 GLint, |
| 1537 GLint, | 1537 GLint, |
| 1538 ImageBitmap*, | 1538 ImageBitmap*, |
| 1539 ExceptionState&); | 1539 ExceptionState&); |
| 1540 static const char* getTexImageFunctionName(TexImageFunctionID); | 1540 static const char* getTexImageFunctionName(TexImageFunctionID); |
| 1541 IntRect sentinelEmptyRect(); | 1541 IntRect sentinelEmptyRect(); |
| 1542 IntRect safeGetImageSize(Image*); | 1542 IntRect safeGetImageSize(Image*); |
| 1543 | 1543 |
| 1544 // Helper implementing readPixels for WebGL 1.0 and 2.0. |
| 1545 void readPixelsHelper(GLint x, |
| 1546 GLint y, |
| 1547 GLsizei width, |
| 1548 GLsizei height, |
| 1549 GLenum format, |
| 1550 GLenum type, |
| 1551 DOMArrayBufferView* pixels, |
| 1552 GLuint offset); |
| 1553 |
| 1544 private: | 1554 private: |
| 1545 WebGLRenderingContextBase(HTMLCanvasElement*, | 1555 WebGLRenderingContextBase(HTMLCanvasElement*, |
| 1546 OffscreenCanvas*, | 1556 OffscreenCanvas*, |
| 1547 std::unique_ptr<WebGraphicsContext3DProvider>, | 1557 std::unique_ptr<WebGraphicsContext3DProvider>, |
| 1548 const CanvasContextCreationAttributes&, | 1558 const CanvasContextCreationAttributes&, |
| 1549 unsigned); | 1559 unsigned); |
| 1550 static std::unique_ptr<WebGraphicsContext3DProvider> | 1560 static std::unique_ptr<WebGraphicsContext3DProvider> |
| 1551 createContextProviderInternal(HTMLCanvasElement*, | 1561 createContextProviderInternal(HTMLCanvasElement*, |
| 1552 ScriptState*, | 1562 ScriptState*, |
| 1553 const CanvasContextCreationAttributes&, | 1563 const CanvasContextCreationAttributes&, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1565 context, | 1575 context, |
| 1566 context->is3d(), | 1576 context->is3d(), |
| 1567 context.is3d()); | 1577 context.is3d()); |
| 1568 | 1578 |
| 1569 } // namespace blink | 1579 } // namespace blink |
| 1570 | 1580 |
| 1571 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( | 1581 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( |
| 1572 blink::WebGLRenderingContextBase::TextureUnitState); | 1582 blink::WebGLRenderingContextBase::TextureUnitState); |
| 1573 | 1583 |
| 1574 #endif // WebGLRenderingContextBase_h | 1584 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |