| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 class EXTDrawBuffers; | 46 class EXTDrawBuffers; |
| 47 class EXTTextureFilterAnisotropic; | 47 class EXTTextureFilterAnisotropic; |
| 48 class HTMLImageElement; | 48 class HTMLImageElement; |
| 49 class HTMLVideoElement; | 49 class HTMLVideoElement; |
| 50 class ImageBuffer; | 50 class ImageBuffer; |
| 51 class ImageData; | 51 class ImageData; |
| 52 class IntSize; | 52 class IntSize; |
| 53 class OESStandardDerivatives; | 53 class OESStandardDerivatives; |
| 54 class OESTextureFloat; | 54 class OESTextureFloat; |
| 55 class OESTextureHalfFloat; | 55 class OESTextureHalfFloat; |
| 56 class OESTextureFloatLinear; |
| 57 class OESTextureHalfFloatLinear; |
| 56 class OESVertexArrayObject; | 58 class OESVertexArrayObject; |
| 57 class OESElementIndexUint; | 59 class OESElementIndexUint; |
| 58 class WebGLActiveInfo; | 60 class WebGLActiveInfo; |
| 59 class WebGLBuffer; | 61 class WebGLBuffer; |
| 60 class WebGLContextGroup; | 62 class WebGLContextGroup; |
| 61 class WebGLContextObject; | 63 class WebGLContextObject; |
| 62 class WebGLCompressedTextureATC; | 64 class WebGLCompressedTextureATC; |
| 63 class WebGLCompressedTexturePVRTC; | 65 class WebGLCompressedTexturePVRTC; |
| 64 class WebGLCompressedTextureS3TC; | 66 class WebGLCompressedTextureS3TC; |
| 65 class WebGLContextAttributes; | 67 class WebGLContextAttributes; |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 bool m_isDepthStencilSupported; | 518 bool m_isDepthStencilSupported; |
| 517 bool m_isRobustnessEXTSupported; | 519 bool m_isRobustnessEXTSupported; |
| 518 | 520 |
| 519 bool m_synthesizedErrorsToConsole; | 521 bool m_synthesizedErrorsToConsole; |
| 520 int m_numGLErrorsToConsoleAllowed; | 522 int m_numGLErrorsToConsoleAllowed; |
| 521 | 523 |
| 522 // Enabled extension objects. | 524 // Enabled extension objects. |
| 523 OwnPtr<EXTDrawBuffers> m_extDrawBuffers; | 525 OwnPtr<EXTDrawBuffers> m_extDrawBuffers; |
| 524 OwnPtr<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic; | 526 OwnPtr<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic; |
| 525 OwnPtr<OESTextureFloat> m_oesTextureFloat; | 527 OwnPtr<OESTextureFloat> m_oesTextureFloat; |
| 528 OwnPtr<OESTextureFloatLinear> m_oesTextureFloatLinear; |
| 526 OwnPtr<OESTextureHalfFloat> m_oesTextureHalfFloat; | 529 OwnPtr<OESTextureHalfFloat> m_oesTextureHalfFloat; |
| 530 OwnPtr<OESTextureHalfFloatLinear> m_oesTextureHalfFloatLinear; |
| 527 OwnPtr<OESStandardDerivatives> m_oesStandardDerivatives; | 531 OwnPtr<OESStandardDerivatives> m_oesStandardDerivatives; |
| 528 OwnPtr<OESVertexArrayObject> m_oesVertexArrayObject; | 532 OwnPtr<OESVertexArrayObject> m_oesVertexArrayObject; |
| 529 OwnPtr<OESElementIndexUint> m_oesElementIndexUint; | 533 OwnPtr<OESElementIndexUint> m_oesElementIndexUint; |
| 530 OwnPtr<WebGLLoseContext> m_webglLoseContext; | 534 OwnPtr<WebGLLoseContext> m_webglLoseContext; |
| 531 OwnPtr<WebGLDebugRendererInfo> m_webglDebugRendererInfo; | 535 OwnPtr<WebGLDebugRendererInfo> m_webglDebugRendererInfo; |
| 532 OwnPtr<WebGLDebugShaders> m_webglDebugShaders; | 536 OwnPtr<WebGLDebugShaders> m_webglDebugShaders; |
| 533 OwnPtr<WebGLCompressedTextureATC> m_webglCompressedTextureATC; | 537 OwnPtr<WebGLCompressedTextureATC> m_webglCompressedTextureATC; |
| 534 OwnPtr<WebGLCompressedTexturePVRTC> m_webglCompressedTexturePVRTC; | 538 OwnPtr<WebGLCompressedTexturePVRTC> m_webglCompressedTexturePVRTC; |
| 535 OwnPtr<WebGLCompressedTextureS3TC> m_webglCompressedTextureS3TC; | 539 OwnPtr<WebGLCompressedTextureS3TC> m_webglCompressedTextureS3TC; |
| 536 OwnPtr<WebGLDepthTexture> m_webglDepthTexture; | 540 OwnPtr<WebGLDepthTexture> m_webglDepthTexture; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 553 bool clearIfComposited(GC3Dbitfield clearMask = 0); | 557 bool clearIfComposited(GC3Dbitfield clearMask = 0); |
| 554 | 558 |
| 555 // Helper to restore state that clearing the framebuffer may destroy. | 559 // Helper to restore state that clearing the framebuffer may destroy. |
| 556 void restoreStateAfterClear(); | 560 void restoreStateAfterClear(); |
| 557 | 561 |
| 558 void texImage2DBase(GC3Denum target, GC3Dint level, GC3Denum internalformat,
GC3Dsizei width, GC3Dsizei height, GC3Dint border, GC3Denum format, GC3Denum ty
pe, const void* pixels, ExceptionCode&); | 562 void texImage2DBase(GC3Denum target, GC3Dint level, GC3Denum internalformat,
GC3Dsizei width, GC3Dsizei height, GC3Dint border, GC3Denum format, GC3Denum ty
pe, const void* pixels, ExceptionCode&); |
| 559 void texImage2DImpl(GC3Denum target, GC3Dint level, GC3Denum internalformat,
GC3Denum format, GC3Denum type, Image*, GraphicsContext3D::ImageHtmlDomSource,
bool flipY, bool premultiplyAlpha, ExceptionCode&); | 563 void texImage2DImpl(GC3Denum target, GC3Dint level, GC3Denum internalformat,
GC3Denum format, GC3Denum type, Image*, GraphicsContext3D::ImageHtmlDomSource,
bool flipY, bool premultiplyAlpha, ExceptionCode&); |
| 560 void texSubImage2DBase(GC3Denum target, GC3Dint level, GC3Dint xoffset, GC3D
int yoffset, GC3Dsizei width, GC3Dsizei height, GC3Denum format, GC3Denum type,
const void* pixels, ExceptionCode&); | 564 void texSubImage2DBase(GC3Denum target, GC3Dint level, GC3Dint xoffset, GC3D
int yoffset, GC3Dsizei width, GC3Dsizei height, GC3Denum format, GC3Denum type,
const void* pixels, ExceptionCode&); |
| 561 void texSubImage2DImpl(GC3Denum target, GC3Dint level, GC3Dint xoffset, GC3D
int yoffset, GC3Denum format, GC3Denum type, Image*, GraphicsContext3D::ImageHtm
lDomSource, bool flipY, bool premultiplyAlpha, ExceptionCode&); | 565 void texSubImage2DImpl(GC3Denum target, GC3Dint level, GC3Dint xoffset, GC3D
int yoffset, GC3Denum format, GC3Denum type, Image*, GraphicsContext3D::ImageHtm
lDomSource, bool flipY, bool premultiplyAlpha, ExceptionCode&); |
| 562 | 566 |
| 563 void handleNPOTTextures(const char*, bool); | 567 void handleTextureCompleteness(const char*, bool); |
| 564 | |
| 565 void createFallbackBlackTextures1x1(); | 568 void createFallbackBlackTextures1x1(); |
| 566 | 569 |
| 567 // Helper function for copyTex{Sub}Image, check whether the internalformat | 570 // Helper function for copyTex{Sub}Image, check whether the internalformat |
| 568 // and the color buffer format of the current bound framebuffer combination | 571 // and the color buffer format of the current bound framebuffer combination |
| 569 // is valid. | 572 // is valid. |
| 570 bool isTexInternalFormatColorBufferCombinationValid(GC3Denum texInternalForm
at, | 573 bool isTexInternalFormatColorBufferCombinationValid(GC3Denum texInternalForm
at, |
| 571 GC3Denum colorBufferForm
at); | 574 GC3Denum colorBufferForm
at); |
| 572 | 575 |
| 573 // Helper function to get the bound framebuffer's color buffer format. | 576 // Helper function to get the bound framebuffer's color buffer format. |
| 574 GC3Denum getBoundFramebufferColorFormat(); | 577 GC3Denum getBoundFramebufferColorFormat(); |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 static void activateContext(WebGLRenderingContext*); | 790 static void activateContext(WebGLRenderingContext*); |
| 788 static void deactivateContext(WebGLRenderingContext*, bool addToInactiveList
); | 791 static void deactivateContext(WebGLRenderingContext*, bool addToInactiveList
); |
| 789 static void willDestroyContext(WebGLRenderingContext*); | 792 static void willDestroyContext(WebGLRenderingContext*); |
| 790 static void forciblyLoseOldestContext(const String& reason); | 793 static void forciblyLoseOldestContext(const String& reason); |
| 791 static IntSize oldestContextSize(); | 794 static IntSize oldestContextSize(); |
| 792 }; | 795 }; |
| 793 | 796 |
| 794 } // namespace WebCore | 797 } // namespace WebCore |
| 795 | 798 |
| 796 #endif | 799 #endif |
| OLD | NEW |