From d0f4bacc67c93fee22b5ff62da2b83308546d71d Mon Sep 17 00:00:00 2001 From: Adlai Holler Date: Sat, 19 Sep 2015 12:23:51 -0700 Subject: [PATCH] ImageNode: fill background more efficiently --- AsyncDisplayKit/ASImageNode.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AsyncDisplayKit/ASImageNode.mm b/AsyncDisplayKit/ASImageNode.mm index 11b4ac5f23..f28b743054 100644 --- a/AsyncDisplayKit/ASImageNode.mm +++ b/AsyncDisplayKit/ASImageNode.mm @@ -231,7 +231,7 @@ // if view is opaque, fill the context with background color if (parameters.opaque && parameters.backgroundColor) { [parameters.backgroundColor setFill]; - [[UIBezierPath bezierPathWithRect:{ .size = backingSize }] fill]; + UIRectFill({ .size = backingSize }); } [image drawInRect:imageDrawRect];