WebTileLayers should honor the acceleratesDrawing flag
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jan 2012 23:34:01 +0000 (23:34 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jan 2012 23:34:01 +0000 (23:34 +0000)
commit4e73d7718640c28942bfefd06120d7dcd2cee976
tree5942026dfbe01ba2d8cdf150f21b761c8b908ad1
parent5b585ab6ad799c8ed35ec7c27cbf78a7d83494e4
WebTileLayers should honor the acceleratesDrawing flag
https://bugs.webkit.org/show_bug.cgi?id=77242
<rdar://problem/10622128>

Reviewed by Dan Bernstein.

* platform/graphics/ca/mac/TileCache.h:
(WebCore::TileCache::acceleratesDrawing):
Add getter.

* platform/graphics/ca/mac/TileCache.mm:
(WebCore::TileCache::TileCache):
Initialize m_acceleratesDrawing.

(WebCore::TileCache::setAcceleratesDrawing):
Set m_acceleratesDrawing and go through all tile layers and update the flag.

(WebCore::TileCache::createTileLayer):
Call -[CALayer setAcceleratesDrawing:] on the newly created layer.

* platform/graphics/ca/mac/WebTileCacheLayer.mm:
(-[WebTileCacheLayer setAcceleratesDrawing:]):
(-[WebTileCacheLayer acceleratesDrawing]):
Call through to the TileCache object.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106163 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/ca/mac/TileCache.h
Source/WebCore/platform/graphics/ca/mac/TileCache.mm
Source/WebCore/platform/graphics/ca/mac/WebTileCacheLayer.mm