Changeset 228213 in webkit


Ignore:
Timestamp:
Feb 6, 2018 6:51:01 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Rendering SVG images with same size as WebGL texture doesn't work correctly
https://bugs.webkit.org/show_bug.cgi?id=182367

Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2018-02-06
Reviewed by Dean Jackson.

Source/WebCore:

If am image buffer is created for a webgl texture and then it is reused
for another texture, it has to be cleared before drawing.

Test: webgl/webgl-texture-image-buffer-reuse.html

  • html/canvas/WebGLRenderingContextBase.cpp:

(WebCore::WebGLRenderingContextBase::LRUImageBufferCache::imageBuffer):

LayoutTests:

  • webgl/webgl-texture-image-buffer-reuse-expected.html: Added.
  • webgl/webgl-texture-image-buffer-reuse.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r228208 r228213  
     12018-02-06  Said Abou-Hallawa  <sabouhallawa@apple.com>
     2
     3        Rendering SVG images with same size as WebGL texture doesn't work correctly
     4        https://bugs.webkit.org/show_bug.cgi?id=182367
     5
     6        Reviewed by Dean Jackson.
     7
     8        * webgl/webgl-texture-image-buffer-reuse-expected.html: Added.
     9        * webgl/webgl-texture-image-buffer-reuse.html: Added.
     10
    1112018-02-06  Matt Lewis  <jlewis3@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r228201 r228213  
     12018-02-06  Said Abou-Hallawa  <sabouhallawa@apple.com>
     2
     3        Rendering SVG images with same size as WebGL texture doesn't work correctly
     4        https://bugs.webkit.org/show_bug.cgi?id=182367
     5
     6        Reviewed by Dean Jackson.
     7
     8        If am image buffer is created for a webgl texture and then it is reused
     9        for another texture, it has to be cleared before drawing.
     10
     11        Test: webgl/webgl-texture-image-buffer-reuse.html
     12
     13        * html/canvas/WebGLRenderingContextBase.cpp:
     14        (WebCore::WebGLRenderingContextBase::LRUImageBufferCache::imageBuffer):
     15
    1162018-02-06  Youenn Fablet  <youenn@apple.com>
    217
  • trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp

    r226953 r228213  
    59235923            continue;
    59245924        bubbleToFront(i);
     5925        buf->context().clearRect(FloatRect({ }, FloatSize(size)));
    59255926        return buf;
    59265927    }
Note: See TracChangeset for help on using the changeset viewer.