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