Changeset 58140 in webkit


Ignore:
Timestamp:
Apr 22, 2010 7:07:07 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-22 Zhenyao Mo <zmo@google.com>

Reviewed by Darin Fisher.

Add isGLES2Compliant to GraphicsContext3D
https://bugs.webkit.org/show_bug.cgi?id=37872

  • html/canvas/WebGLRenderingContext.cpp: Add isGLES2Compliant(). (WebCore::WebGLRenderingContext::isGLES2Compliant):
  • html/canvas/WebGLRenderingContext.h: Ditto.
  • platform/graphics/GraphicsContext3D.h: Ditto.
  • platform/graphics/mac/GraphicsContext3DMac.cpp: Ditto. (WebCore::GraphicsContext3D::isGLES2Compliant):

2010-04-22 Zhenyao Mo <zmo@google.com>

Reviewed by Darin Fisher.

Add isGLES2Compliant to GraphicsContext3D
https://bugs.webkit.org/show_bug.cgi?id=37872

  • public/WebGraphicsContext3D.h: Add isGLES2Compliant().
  • src/GraphicsContext3D.cpp: Ditto.
  • src/WebGraphicsContext3DDefaultImpl.cpp: Ditto. (WebKit::WebGraphicsContext3DDefaultImpl::isGLES2Compliant):
  • src/WebGraphicsContext3DDefaultImpl.h: Ditto.
Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r58136 r58140  
     12010-04-22  Zhenyao Mo  <zmo@google.com>
     2
     3        Reviewed by Darin Fisher.
     4
     5        Add isGLES2Compliant to GraphicsContext3D
     6        https://bugs.webkit.org/show_bug.cgi?id=37872
     7
     8        * html/canvas/WebGLRenderingContext.cpp: Add isGLES2Compliant().
     9        (WebCore::WebGLRenderingContext::isGLES2Compliant):
     10        * html/canvas/WebGLRenderingContext.h: Ditto.
     11        * platform/graphics/GraphicsContext3D.h: Ditto.
     12        * platform/graphics/mac/GraphicsContext3DMac.cpp: Ditto.
     13        (WebCore::GraphicsContext3D::isGLES2Compliant):
     14
    1152010-04-22  Fumitoshi Ukai  <ukai@chromium.org>
    216
  • trunk/WebCore/html/canvas/WebGLRenderingContext.cpp

    r58103 r58140  
    28222822}
    28232823
     2824bool WebGLRenderingContext::isGLES2Compliant()
     2825{
     2826    return m_context->isGLES2Compliant();
     2827}
     2828
    28242829} // namespace WebCore
    28252830
  • trunk/WebCore/html/canvas/WebGLRenderingContext.h

    r57574 r58140  
    299299                markContextChanged();
    300300        }
     301
     302        bool isGLES2Compliant();
    301303       
    302304        // Basic validation of count and offset against number of elements in element array buffer
  • trunk/WebCore/platform/graphics/GraphicsContext3D.h

    r57747 r58140  
    686686        void synthesizeGLError(unsigned long error);
    687687
     688        bool isGLES2Compliant();
     689
    688690    private:       
    689691        GraphicsContext3D(Attributes attrs, HostWindow* hostWindow);
  • trunk/WebCore/platform/graphics/mac/GraphicsContext3DMac.cpp

    r58102 r58140  
    234234void GraphicsContext3D::endPaint()
    235235{
     236}
     237
     238bool GraphicsContext3D::isGLES2Compliant()
     239{
     240    return false;
    236241}
    237242
  • trunk/WebKit/chromium/ChangeLog

    r58111 r58140  
     12010-04-22  Zhenyao Mo  <zmo@google.com>
     2
     3        Reviewed by Darin Fisher.
     4
     5        Add isGLES2Compliant to GraphicsContext3D
     6        https://bugs.webkit.org/show_bug.cgi?id=37872
     7
     8        * public/WebGraphicsContext3D.h: Add isGLES2Compliant().
     9        * src/GraphicsContext3D.cpp: Ditto.
     10        * src/WebGraphicsContext3DDefaultImpl.cpp: Ditto.
     11        (WebKit::WebGraphicsContext3DDefaultImpl::isGLES2Compliant):
     12        * src/WebGraphicsContext3DDefaultImpl.h: Ditto.
     13
    1142010-04-22  Dave Moore  <davemoore@chromium.org>
    215
  • trunk/WebKit/chromium/public/WebGraphicsContext3D.h

    r56381 r58140  
    100100    virtual void reshape(int width, int height) = 0;
    101101
     102    // Query whether it is built on top of compliant GLES2 implementation.
     103    virtual bool isGLES2Compliant() = 0;
     104
    102105    // Helper for software compositing path. Reads back the frame buffer into
    103106    // the memory region pointed to by "pixels" with size "bufferSize". It is
  • trunk/WebKit/chromium/src/GraphicsContext3D.cpp

    r57771 r58140  
    111111    void beginPaint(WebGLRenderingContext* context);
    112112    void endPaint();
     113
     114    bool isGLES2Compliant();
    113115
    114116    //----------------------------------------------------------------------
     
    618620DELEGATE_TO_IMPL_1R(sizeInBytes, int, int)
    619621
     622DELEGATE_TO_IMPL_R(isGLES2Compliant, bool)
     623
    620624DELEGATE_TO_IMPL_1(activeTexture, unsigned long)
    621625DELEGATE_TO_IMPL_2_X12(attachShader, WebGLProgram*, WebGLShader*)
     
    12911295
    12921296DELEGATE_TO_INTERNAL_1(synthesizeGLError, unsigned long)
     1297DELEGATE_TO_INTERNAL_R(isGLES2Compliant, bool)
    12931298
    12941299} // namespace WebCore
  • trunk/WebKit/chromium/src/WebGraphicsContext3DDefaultImpl.cpp

    r58102 r58140  
    465465}
    466466
     467bool WebGraphicsContext3DDefaultImpl::isGLES2Compliant()
     468{
     469    return false;
     470}
     471
    467472static int createTextureObject(GLenum target)
    468473{
  • trunk/WebKit/chromium/src/WebGraphicsContext3DDefaultImpl.h

    r56872 r58140  
    7676    virtual int sizeInBytes(int type);
    7777
     78    virtual bool isGLES2Compliant();
     79
    7880    virtual void reshape(int width, int height);
    7981
Note: See TracChangeset for help on using the changeset viewer.