Changeset 207332 in webkit


Ignore:
Timestamp:
Oct 14, 2016 2:17:55 AM (8 years ago)
Author:
zandobersek@gmail.com
Message:

[Cairo] GraphicsContext3D::ImageExtractor fails to extract images
https://bugs.webkit.org/show_bug.cgi?id=163439

Reviewed by Carlos Garcia Campos.

In the Cairo implementation of GraphicsContext3D::ImageExtractor,
don't check for frame completeness at index 0. This information
is now cached only after the frame for that index is decoded and
marked as completed, which is done after this check.

Becuase of this the current check forces extractImage() to return
early and abort WebGL texture uploads from image sources.

This bug was most likely exposed after the refactoring in r206481.
https://trac.webkit.org/changeset/206481

  • platform/graphics/cairo/GraphicsContext3DCairo.cpp:

(WebCore::GraphicsContext3D::ImageExtractor::extractImage):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r207331 r207332  
     12016-10-14  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [Cairo] GraphicsContext3D::ImageExtractor fails to extract images
     4        https://bugs.webkit.org/show_bug.cgi?id=163439
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        In the Cairo implementation of GraphicsContext3D::ImageExtractor,
     9        don't check for frame completeness at index 0. This information
     10        is now cached only after the frame for that index is decoded and
     11        marked as completed, which is done after this check.
     12
     13        Becuase of this the current check forces extractImage() to return
     14        early and abort WebGL texture uploads from image sources.
     15
     16        This bug was most likely exposed after the refactoring in r206481.
     17        https://trac.webkit.org/changeset/206481
     18
     19        * platform/graphics/cairo/GraphicsContext3DCairo.cpp:
     20        (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
     21
    1222016-10-14  Youenn Fablet  <youenn@apple.com>
    223
  • trunk/Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp

    r206481 r207332  
    224224    if (m_image->data()) {
    225225        decoder.setData(m_image->data(), true);
    226         if (!decoder.frameCount() || !decoder.frameIsCompleteAtIndex(0))
     226        if (!decoder.frameCount())
    227227            return false;
    228228        m_imageSurface = decoder.createFrameImageAtIndex(0);
Note: See TracChangeset for help on using the changeset viewer.