react-native/React
Nick Lockwood fe4b4c2d83 Optimised blending for translucent images with opaque background color + fixed cropping for images in cover/contain mode.
Summary:
@public

Our background color propagation mechanism is designed to make rendering of translucent content more efficient by pre-blending against an opaque background. Currently this only works for text however, because images are not composited into their background even if the background color is opaque.

This diff precomposites network images with their background color when the background is opaque, allowing them to take advantage of this performance optimization.

I've also added some logic to correctly crop the downloaded image when the resizeMode is "cover" or "contain" - previously it was only correct for "stretch".

Before:{F22437859}
After:{F22437862}

Test Plan: Run the UIExplorer "<ListView> - Paging" example with "color blended layers" enabled and observe that the images appear in green now, instead of red as they did before.
2015-05-22 07:19:06 -08:00
..
Base Optimised blending for translucent images with opaque background color + fixed cropping for images in cover/contain mode. 2015-05-22 07:19:06 -08:00
Executors [ReactNative] Add console.profile hooks to systrace 2015-05-14 15:59:20 -08:00
Layout Fixed layout bug 2015-05-13 13:24:36 -07:00
Modules Added ability to set custom accessibility tap handler to React Native 2015-05-20 08:32:15 -08:00
React.xcodeproj [ReactNative] Add fps monitor 2015-05-20 18:26:36 -08:00
Views Eliminated redundant border drawing 2015-05-20 12:19:24 -08:00