ImageNode: fill background more efficiently

This commit is contained in:
Adlai Holler
2015-09-19 12:23:51 -07:00
parent c872485459
commit d0f4bacc67

View File

@@ -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];