Changeset 212439 in webkit
- Timestamp:
- Feb 16, 2017 9:32:34 AM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r212438 r212439 1 2017-02-16 Simon Fraser <simon.fraser@apple.com> 2 3 Clean up use of some CALayer-related SPI 4 https://bugs.webkit.org/show_bug.cgi?id=168401 5 6 Reviewed by Tim Horton. 7 8 Use -setDrawsAsynchronously: rather than the old -setAcceleratesDrawing: SPI. 9 10 Remove CATiledLayer-related stuff from QuartzCoreSPI.h, since we don't use it any more. 11 12 * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: 13 (PlatformCALayerCocoa::acceleratesDrawing): 14 (PlatformCALayerCocoa::setAcceleratesDrawing): 15 * platform/graphics/ca/cocoa/WebTiledBackingLayer.mm: 16 (-[WebTiledBackingLayer setDrawsAsynchronously:]): This override passes the state 17 onto the TileController. 18 (-[WebTiledBackingLayer setAcceleratesDrawing:]): Deleted. 19 * platform/ios/LegacyTileGridTile.mm: 20 (WebCore::LegacyTileGridTile::LegacyTileGridTile): 21 * platform/spi/cocoa/QuartzCoreSPI.h: 22 1 23 2017-02-16 Yusuke Suzuki <utatane.tea@gmail.com> 2 24 -
trunk/Source/WebCore/platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm
r210105 r212439 687 687 bool PlatformCALayerCocoa::acceleratesDrawing() const 688 688 { 689 return [m_layer acceleratesDrawing];689 return [m_layer drawsAsynchronously]; 690 690 } 691 691 … … 693 693 { 694 694 BEGIN_BLOCK_OBJC_EXCEPTIONS 695 [m_layer set AcceleratesDrawing:acceleratesDrawing];695 [m_layer setDrawsAsynchronously:acceleratesDrawing]; 696 696 END_BLOCK_OBJC_EXCEPTIONS 697 697 } -
trunk/Source/WebCore/platform/graphics/ca/cocoa/WebTiledBackingLayer.mm
r185856 r212439 104 104 } 105 105 106 - (void)set AcceleratesDrawing:(BOOL)acceleratesDrawing106 - (void)setDrawsAsynchronously:(BOOL)acceleratesDrawing 107 107 { 108 108 _tileController->setAcceleratesDrawing(acceleratesDrawing); -
trunk/Source/WebCore/platform/ios/LegacyTileGridTile.mm
r204466 r212439 71 71 [layer setNeedsLayoutOnGeometryChange:NO]; 72 72 [layer setContentsScale:screenScale]; 73 [layer set AcceleratesDrawing:m_tileGrid->tileCache().acceleratedDrawingEnabled()];73 [layer setDrawsAsynchronously:m_tileGrid->tileCache().acceleratedDrawingEnabled()]; 74 74 75 75 // Host layer may have other sublayers. Keep the tile layers at the beginning of the array -
trunk/Source/WebCore/platform/spi/cocoa/QuartzCoreSPI.h
r212260 r212439 79 79 - (void *)regionBeingDrawn; 80 80 - (void)setContentsChanged; 81 @property BOOL acceleratesDrawing;82 81 @property BOOL allowsGroupBlending; 83 82 @property BOOL canDrawConcurrently; … … 89 88 @property (copy) NSString *contentsFormat; 90 89 #endif 91 @end92 93 @interface CATiledLayer ()94 - (void)displayInRect:(CGRect)rect levelOfDetail:(int)levelOfDetail options:(NSDictionary *)dictionary;95 - (void)setNeedsDisplayInRect:(CGRect)rect levelOfDetail:(int)levelOfDetail options:(NSDictionary *)dictionary;96 90 @end 97 91 … … 198 192 WTF_EXTERN_C_END 199 193 200 extern NSString * const kCATiledLayerRemoveImmediately;201 202 194 extern NSString * const kCAFilterColorInvert; 203 195 extern NSString * const kCAFilterColorMatrix; -
trunk/Source/WebKit/mac/ChangeLog
r212386 r212439 1 2017-02-16 Simon Fraser <simon.fraser@apple.com> 2 3 Clean up use of some CALayer-related SPI 4 https://bugs.webkit.org/show_bug.cgi?id=168401 5 6 Reviewed by Tim Horton. 7 8 Include CALayer.h not CATiledLayer.h. 9 10 * WebInspector/WebNodeHighlight.h: 11 1 12 2017-02-15 Wenson Hsieh <wenson_hsieh@apple.com> 2 13 -
trunk/Source/WebKit/mac/WebInspector/WebNodeHighlight.h
r168047 r212439 28 28 29 29 #if PLATFORM(IOS) 30 #import <QuartzCore/CA TiledLayer.h>30 #import <QuartzCore/CALayer.h> 31 31 #import <WebKitLegacy/WAKAppKitStubs.h> 32 32 #import <WebKitLegacy/WAKView.h>
Note: See TracChangeset
for help on using the changeset viewer.