Changeset 227702 in webkit


Ignore:
Timestamp:
Jan 26, 2018 4:45:43 PM (6 years ago)
Author:
dino@apple.com
Message:

REGRESSION (r222961): Clear function not clearing whole screen when antialias is set to false
https://bugs.webkit.org/show_bug.cgi?id=179368
<rdar://problem/36111549>

Reviewed by Sam Weinig.

When we changed from using a CAOpenGLLayer to a regular CALayer, we should
have also swapped the "opaque" property to "contentsOpaque".

Covered by the existing test: fast/canvas/webgl/context-attributes-alpha.html
(when run on some hardware!)

  • platform/graphics/cocoa/WebGLLayer.mm:

(-[WebGLLayer initWithGraphicsContext3D:]):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r227701 r227702  
     12018-01-26  Dean Jackson  <dino@apple.com>
     2
     3        REGRESSION (r222961): Clear function not clearing whole screen when antialias is set to false
     4        https://bugs.webkit.org/show_bug.cgi?id=179368
     5        <rdar://problem/36111549>
     6
     7        Reviewed by Sam Weinig.
     8
     9        When we changed from using a CAOpenGLLayer to a regular CALayer, we should
     10        have also swapped the "opaque" property to "contentsOpaque".
     11
     12        Covered by the existing test: fast/canvas/webgl/context-attributes-alpha.html
     13        (when run on some hardware!)
     14
     15        * platform/graphics/cocoa/WebGLLayer.mm:
     16        (-[WebGLLayer initWithGraphicsContext3D:]):
     17
    1182018-01-26  Mark Lam  <mark.lam@apple.com>
    219
  • trunk/Source/WebCore/platform/graphics/cocoa/WebGLLayer.mm

    r227588 r227702  
    5555    _devicePixelRatio = context->getContextAttributes().devicePixelRatio;
    5656#if PLATFORM(MAC)
    57     if (!context->getContextAttributes().alpha)
    58         self.opaque = YES;
     57    self.contentsOpaque = !context->getContextAttributes().alpha;
    5958    self.transform = CATransform3DIdentity;
    6059    self.contentsScale = _devicePixelRatio;
Note: See TracChangeset for help on using the changeset viewer.