Clean up use of some CALayer-related SPI
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Feb 2017 17:32:34 +0000 (17:32 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Feb 2017 17:32:34 +0000 (17:32 +0000)
commitffaa55b92d72962f3407c009c84988a0f64171a1
treef84858a18ef3ffe0b7df7763277d817890a3f1fe
parent5916be2163f38dde7bebeb4657ee89633cd907f1
Clean up use of some CALayer-related SPI
https://bugs.webkit.org/show_bug.cgi?id=168401

Reviewed by Tim Horton.

Source/WebCore:

Use -setDrawsAsynchronously: rather than the old -setAcceleratesDrawing: SPI.

Remove CATiledLayer-related stuff from QuartzCoreSPI.h, since we don't use it any more.

* platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm:
(PlatformCALayerCocoa::acceleratesDrawing):
(PlatformCALayerCocoa::setAcceleratesDrawing):
* platform/graphics/ca/cocoa/WebTiledBackingLayer.mm:
(-[WebTiledBackingLayer setDrawsAsynchronously:]): This override passes the state
onto the TileController.
(-[WebTiledBackingLayer setAcceleratesDrawing:]): Deleted.
* platform/ios/LegacyTileGridTile.mm:
(WebCore::LegacyTileGridTile::LegacyTileGridTile):
* platform/spi/cocoa/QuartzCoreSPI.h:

Source/WebKit/mac:

Include CALayer.h not CATiledLayer.h.

* WebInspector/WebNodeHighlight.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@212439 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm
Source/WebCore/platform/graphics/ca/cocoa/WebTiledBackingLayer.mm
Source/WebCore/platform/ios/LegacyTileGridTile.mm
Source/WebCore/platform/spi/cocoa/QuartzCoreSPI.h
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebInspector/WebNodeHighlight.h