diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/mac/WebLayer.mm')
-rw-r--r-- | Source/WebCore/platform/graphics/mac/WebLayer.mm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/mac/WebLayer.mm b/Source/WebCore/platform/graphics/mac/WebLayer.mm index 414a75f..c9705d0 100644 --- a/Source/WebCore/platform/graphics/mac/WebLayer.mm +++ b/Source/WebCore/platform/graphics/mac/WebLayer.mm @@ -40,8 +40,9 @@ using namespace WebCore; @implementation WebLayer -void drawLayerContents(CGContextRef context, CALayer *layer, WebCore::PlatformCALayerClient* layerContents) +void drawLayerContents(CGContextRef context, CALayer *layer, WebCore::PlatformCALayer* platformLayer) { + WebCore::PlatformCALayerClient* layerContents = platformLayer->owner(); if (!layerContents) return; @@ -62,6 +63,7 @@ void drawLayerContents(CGContextRef context, CALayer *layer, WebCore::PlatformCA GraphicsContext graphicsContext(context); graphicsContext.setIsCALayerContext(true); + graphicsContext.setIsAcceleratedContext(platformLayer->acceleratesDrawing()); if (!layerContents->platformCALayerContentsOpaque()) { // Turn off font smoothing to improve the appearance of text rendered onto a transparent background. @@ -167,7 +169,7 @@ void setLayerNeedsDisplayInRect(CALayer *layer, WebCore::PlatformCALayerClient* { PlatformCALayer* layer = PlatformCALayer::platformCALayer(self); if (layer) - drawLayerContents(context, self, layer->owner()); + drawLayerContents(context, self, layer); } @end // implementation WebLayer |