Changeset 201639 in webkit


Ignore:
Timestamp:
Jun 3, 2016 12:52:13 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION: WebGL doesn't show up in CSS reflections
https://bugs.webkit.org/show_bug.cgi?id=76489

Patch by Antoine Quint <Antoine Quint> on 2016-06-03
Reviewed by Dean Jackson.

Source/WebCore:

The WebGLLayer needs to notify its owning GraphicsLayer that it was displayed
such that its clones, in GraphicsLayerCA::layerDidDisplay, may have their contents
updated to match that layer's contents. The test at compositing/webgl/webgl-reflection.html
already covers this test and its expectation on Mac has been updated.

  • platform/graphics/mac/WebGLLayer.mm:

(-[WebGLLayer display]):

LayoutTests:

Update the expected rendering to contain the reflected WebGL <canvas>.

  • platform/mac/compositing/webgl/webgl-reflection-expected.png:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r201635 r201639  
     12016-06-03  Antoine Quint  <graouts@apple.com>
     2
     3        REGRESSION: WebGL doesn't show up in CSS reflections
     4        https://bugs.webkit.org/show_bug.cgi?id=76489
     5
     6        Reviewed by Dean Jackson.
     7
     8        Update the expected rendering to contain the reflected WebGL <canvas>.
     9
     10        * platform/mac/compositing/webgl/webgl-reflection-expected.png:
     11
    1122016-06-02  Zalan Bujtas  <zalan@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r201638 r201639  
     12016-06-03  Antoine Quint  <graouts@apple.com>
     2
     3        REGRESSION: WebGL doesn't show up in CSS reflections
     4        https://bugs.webkit.org/show_bug.cgi?id=76489
     5
     6        Reviewed by Dean Jackson.
     7
     8        The WebGLLayer needs to notify its owning GraphicsLayer that it was displayed
     9        such that its clones, in GraphicsLayerCA::layerDidDisplay, may have their contents
     10        updated to match that layer's contents. The test at compositing/webgl/webgl-reflection.html
     11        already covers this test and its expectation on Mac has been updated.
     12
     13        * platform/graphics/mac/WebGLLayer.mm:
     14        (-[WebGLLayer display]):
     15
    1162016-06-02  Gavin Barraclough  <barraclough@apple.com>
    217
  • trunk/Source/WebCore/platform/graphics/mac/WebGLLayer.mm

    r192712 r201639  
    3333#import "GraphicsContextCG.h"
    3434#import "GraphicsLayer.h"
     35#import "GraphicsLayerCA.h"
     36#import "PlatformCALayer.h"
    3537#import <wtf/FastMalloc.h>
    3638#import <wtf/RetainPtr.h>
     
    180182#endif
    181183    _context->markLayerComposited();
     184    PlatformCALayer* layer = PlatformCALayer::platformCALayer(self);
     185    if (layer && layer->owner())
     186        layer->owner()->platformCALayerLayerDidDisplay(layer);
    182187}
    183188
Note: See TracChangeset for help on using the changeset viewer.