Changeset 148516 in webkit


Ignore:
Timestamp:
Apr 16, 2013 9:16:04 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] LayerTexture: check if the graphics context is NULL
https://bugs.webkit.org/show_bug.cgi?id=114674

Patch by Anthony Scian <ascian@blackberry.com> on 2013-04-16
Reviewed by Rob Buis.

Internal PR: 256522

  • platform/graphics/blackberry/LayerTexture.cpp:

(WebCore::LayerTexture::setContentsToColor):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r148508 r148516  
     12013-04-16  Anthony Scian  <ascian@blackberry.com>
     2
     3        [BlackBerry] LayerTexture: check if the graphics context is NULL
     4        https://bugs.webkit.org/show_bug.cgi?id=114674
     5
     6        Reviewed by Rob Buis.
     7
     8        Internal PR: 256522
     9
     10        * platform/graphics/blackberry/LayerTexture.cpp:
     11        (WebCore::LayerTexture::setContentsToColor):
     12
    1132013-04-13  Andreas Kling  <akling@apple.com>
    214
  • trunk/Source/WebCore/platform/graphics/blackberry/LayerTexture.cpp

    r148192 r148516  
    6666
    6767    m_buffer = BlackBerry::Platform::Graphics::createBuffer(IntSize(1, 1), BlackBerry::Platform::Graphics::BackedWhenNecessary);
    68     BlackBerry::Platform::Graphics::PlatformGraphicsContext* gc = lockBufferDrawable(m_buffer);
    69     gc->setFillColor(rgba);
    70     gc->addFillRect(BlackBerry::Platform::FloatRect(0, 0, 1, 1));
     68    if (BlackBerry::Platform::Graphics::PlatformGraphicsContext* gc = lockBufferDrawable(m_buffer)) {
     69        gc->setFillColor(rgba);
     70        gc->addFillRect(BlackBerry::Platform::FloatRect(0, 0, 1, 1));
     71    }
    7172    releaseBufferDrawable(m_buffer);
    7273
Note: See TracChangeset for help on using the changeset viewer.