Changeset 139642 in webkit


Ignore:
Timestamp:
Jan 14, 2013 12:35:36 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Use correct size for DrawingBuffer readback
https://bugs.webkit.org/show_bug.cgi?id=106744

Patch by John Bauman <jbauman@chromium.org> on 2013-01-14
Reviewed by Kenneth Russell.

The value getInternalFramebufferSize is bogus if there's a
DrawingBuffer, so use size() instead.

  • platform/graphics/chromium/DrawingBufferChromium.cpp:

(WebCore::DrawingBuffer::paintCompositedResultsToCanvas):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139641 r139642  
     12013-01-14  John Bauman  <jbauman@chromium.org>
     2
     3        Use correct size for DrawingBuffer readback
     4        https://bugs.webkit.org/show_bug.cgi?id=106744
     5
     6        Reviewed by Kenneth Russell.
     7
     8        The value getInternalFramebufferSize is bogus if there's a
     9        DrawingBuffer, so use size() instead.
     10
     11        * platform/graphics/chromium/DrawingBufferChromium.cpp:
     12        (WebCore::DrawingBuffer::paintCompositedResultsToCanvas):
     13
    1142013-01-14  Joshua Bell  <jsbell@chromium.org>
    215
  • trunk/Source/WebCore/platform/graphics/chromium/DrawingBufferChromium.cpp

    r139142 r139642  
    235235        return;
    236236
    237     IntSize framebufferSize = m_context->getInternalFramebufferSize();
    238 
    239237    // Since we're using the same context as WebGL, we have to restore any state we change (in this case, just the framebuffer binding).
    240238    // FIXME: The WebGLRenderingContext tracks the current framebuffer binding, it would be slightly more efficient to use this value
     
    248246
    249247    Extensions3DChromium* extensions = static_cast<Extensions3DChromium*>(m_context->getExtensions());
    250     extensions->paintFramebufferToCanvas(framebuffer, framebufferSize.width(), framebufferSize.height(), !m_context->getContextAttributes().premultipliedAlpha, imageBuffer);
     248    extensions->paintFramebufferToCanvas(framebuffer, size().width(), size().height(), !m_context->getContextAttributes().premultipliedAlpha, imageBuffer);
    251249    m_context->deleteFramebuffer(framebuffer);
    252250
Note: See TracChangeset for help on using the changeset viewer.