Changeset 86310 in webkit


Ignore:
Timestamp:
May 11, 2011 10:35:29 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-11 Brian Salomon <bsalomon@google.com>

Reviewed by Eric Seidel.

Handle case when GrContext creation fails
https://bugs.webkit.org/show_bug.cgi?id=60410

Exercised by all canvas tests when DRT is run with skia-gpu

  • platform/graphics/gpu/SharedGraphicsContext3D.cpp: (WebCore::SharedGraphicsContext3D::grContext):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r86309 r86310  
     12011-05-11  Brian Salomon  <bsalomon@google.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Handle case when GrContext creation fails
     6        https://bugs.webkit.org/show_bug.cgi?id=60410
     7
     8        Exercised by all canvas tests when DRT is run with skia-gpu
     9
     10        * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
     11        (WebCore::SharedGraphicsContext3D::grContext):
     12
    1132011-05-11  Pratik Solanki  <psolanki@apple.com>
    214
  • trunk/Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp

    r85017 r86310  
    484484    if (!m_grContext) {
    485485        m_grContext = GrContext::CreateGLShaderContext();
    486         m_grContext->setTextureCacheLimits(maxTextureCacheCount, maxTextureCacheBytes);
     486        if (m_grContext)
     487            m_grContext->setTextureCacheLimits(maxTextureCacheCount, maxTextureCacheBytes);
    487488    }
    488489    return m_grContext;
Note: See TracChangeset for help on using the changeset viewer.