Changeset 268446 in webkit
- Timestamp:
- Oct 14, 2020, 2:18:23 AM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm (modified) (1 diff)
-
platform/graphics/cocoa/WebGLLayer.h (modified) (1 diff)
-
platform/graphics/cocoa/WebGLLayer.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r268444 r268446 1 2020-10-14 Kimmo Kinnunen <kkinnunen@apple.com> 2 3 REGRESSION: fast/canvas/webgl/context-attributes-alpha.html fails 4 https://bugs.webkit.org/show_bug.cgi?id=217697 5 6 Reviewed by Antti Koivisto. 7 8 The original work in "Cocoa: Make WebGLLayer not dependent on 9 GraphicsContextGLOpenGL" was missing the hunk to initialize 10 WebGLLayer contentsOpaque. Neither the EWS nor the local testing 11 used the test case. 12 13 No new tests, tested by 14 fast/canvas/webgl/context-attributes-alpha.html. 15 16 * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm: 17 (WebCore::GraphicsContextGLOpenGL::GraphicsContextGLOpenGL): 18 * platform/graphics/cocoa/WebGLLayer.h: 19 * platform/graphics/cocoa/WebGLLayer.mm: 20 (-[WebGLLayer initWithClient:devicePixelRatio:contentsOpaque:]): 21 (-[WebGLLayer initWithClient:devicePixelRatio:]): Deleted. 22 1 23 2020-10-13 Antoine Quint <graouts@webkit.org> 2 24 -
trunk/Source/WebCore/platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm
r268386 r268446 335 335 // Create the WebGLLayer 336 336 BEGIN_BLOCK_OBJC_EXCEPTIONS 337 m_webGLLayer = adoptNS([[WebGLLayer alloc] initWithClient:this devicePixelRatio:attrs.devicePixelRatio ]);337 m_webGLLayer = adoptNS([[WebGLLayer alloc] initWithClient:this devicePixelRatio:attrs.devicePixelRatio contentsOpaque:!attrs.alpha]); 338 338 #ifndef NDEBUG 339 339 [m_webGLLayer setName:@"WebGL Layer"]; -
trunk/Source/WebCore/platform/graphics/cocoa/WebGLLayer.h
r268386 r268446 49 49 @interface WebGLLayer : CALayer 50 50 51 - (id)initWithClient:(NakedPtr<WebCore::WebGLLayerClient>)client devicePixelRatio:(float)devicePixelRatio ;51 - (id)initWithClient:(NakedPtr<WebCore::WebGLLayerClient>)client devicePixelRatio:(float)devicePixelRatio contentsOpaque:(bool)contentsOpaque; 52 52 53 53 - (CGImageRef)copyImageSnapshotWithColorSpace:(CGColorSpaceRef)colorSpace; -
trunk/Source/WebCore/platform/graphics/cocoa/WebGLLayer.mm
r268386 r268446 44 44 } 45 45 46 - (id)initWithClient:(NakedPtr<WebCore::WebGLLayerClient>)client devicePixelRatio:(float)devicePixelRatio 46 - (id)initWithClient:(NakedPtr<WebCore::WebGLLayerClient>)client devicePixelRatio:(float)devicePixelRatio contentsOpaque:(bool)contentsOpaque 47 47 { 48 48 _client = client; 49 49 self = [super init]; 50 50 self.transform = CATransform3DIdentity; 51 self.contentsOpaque = contentsOpaque; 51 52 self.contentsScale = devicePixelRatio; 52 53 return self;
Note:
See TracChangeset
for help on using the changeset viewer.