Changeset 93707 in webkit


Ignore:
Timestamp:
Aug 24, 2011 8:04:32 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[SKIA] Allow WebKitGraphicsContext3D implementation to provide a compatible GrGLInterface
https://bugs.webkit.org/show_bug.cgi?id=66809

Patch by Brian Salomon <bsalomon@google.com> on 2011-08-24
Reviewed by Stephen White.

  • public/WebGraphicsContext3D.h:

(WebKit::WebGraphicsContext3D::grGLInterface):

  • src/GraphicsContext3DChromium.cpp:

(WebCore::GraphicsContext3DInternal::grContext):

Location:
trunk/Source/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r93692 r93707  
     12011-08-24  Brian Salomon  <bsalomon@google.com>
     2
     3        [SKIA] Allow WebKitGraphicsContext3D implementation to provide a compatible GrGLInterface
     4        https://bugs.webkit.org/show_bug.cgi?id=66809
     5
     6        Reviewed by Stephen White.
     7
     8        * public/WebGraphicsContext3D.h:
     9        (WebKit::WebGraphicsContext3D::grGLInterface):
     10        * src/GraphicsContext3DChromium.cpp:
     11        (WebCore::GraphicsContext3DInternal::grContext):
     12
    1132011-08-23  Adam Barth  <abarth@webkit.org>
    214
  • trunk/Source/WebKit/chromium/public/WebGraphicsContext3D.h

    r93625 r93707  
    6161typedef WGC3Duint WebGLId;
    6262
     63#if WEBKIT_USING_SKIA
     64struct GrGLInterface;
     65#endif
     66
    6367class WebView;
    6468
     
    356360    // state is sticky, rather than reported only once.
    357361    virtual WGC3Denum getGraphicsResetStatusARB() { return 0; /* GL_NO_ERROR */ }
     362
     363#if WEBKIT_USING_SKIA
     364    virtual GrGLInterface* grGLInterface() { return 0; }
     365#endif
    358366};
    359367
  • trunk/Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp

    r93689 r93707  
    165165
    166166    if (!m_grContext) {
    167         m_grContext = GrContext::CreateGLShaderContext();
     167        GrPlatform3DContext glinterface = reinterpret_cast<GrPlatform3DContext>(m_impl->grGLInterface());
     168        m_grContext = GrContext::Create(kOpenGL_Shaders_GrEngine, glinterface);
    168169        if (m_grContext)
    169170            m_grContext->setTextureCacheLimits(maxTextureCacheCount, maxTextureCacheBytes);
Note: See TracChangeset for help on using the changeset viewer.