Changeset 143545 in webkit


Ignore:
Timestamp:
Feb 20, 2013 5:35:01 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Printing WebGL canvases in Chrome uses stale data after first print
https://bugs.webkit.org/show_bug.cgi?id=110003

Patch by Brandon Jones <bajones@google.com> on 2013-02-20
Reviewed by Kenneth Russell.

Unable to validate printed content automatically. No regression in existing WebGL tests.

  • html/canvas/WebGLRenderingContext.cpp: (WebCore): (WebCore::WebGLRenderingContext::paintRenderingResultsToCanvas):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r143542 r143545  
     12013-02-20  Brandon Jones  <bajones@google.com>
     2 
     3        Printing WebGL canvases in Chrome uses stale data after first print
     4        https://bugs.webkit.org/show_bug.cgi?id=110003
     5 
     6        Reviewed by Kenneth Russell.
     7 
     8        Unable to validate printed content automatically. No regression in existing WebGL tests.
     9 
     10         * html/canvas/WebGLRenderingContext.cpp:
     11         (WebCore):
     12         (WebCore::WebGLRenderingContext::paintRenderingResultsToCanvas):
     13
    1142013-02-20  Christian Biesinger  <cbiesinger@chromium.org>
    215
  • trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp

    r142810 r143545  
    740740void WebGLRenderingContext::paintRenderingResultsToCanvas()
    741741{
     742    if (canvas()->document()->printing())
     743        canvas()->clearPresentationCopy();
     744
    742745    // Until the canvas is written to by the application, the clear that
    743746    // happened after it was composited should be ignored by the compositor.
Note: See TracChangeset for help on using the changeset viewer.