When adding a (layer-backed) NSView using a compositingFilter to a (layer-backed) superview, the superview flickers

Originator:friedrich.markgraf
Number:rdar://16131941 Date Originated:2014/02/21
Status:Open Resolved:
Product:OS X SDK Product Version:10.9.1
Classification:UI Reproducible:Always
 
Summary:
When adding a (layer-backed) NSView using a compositingFilter to a (layer-backed) superview, the superview flickers.

If the window's contentView is layer-backed, the whole window becomes briefly invisible.

The problem becomes more and more visible the more views using compositingFilter are added.

Steps to Reproduce:
1. Have a layer-backed view (for maximum effect, make the window's contentView layer-backed).
2. Add a (layer-backed) subview that uses a compositingFilter. (for maximum effect, add several dozen)
3. See the superview become invisible (if the window's contentView is layer-backed, the whole window becomes invisible).

Expected Results:
Subviews utilizing compositingFilter are added like all other subviews are: Not affecting principal visibility of their superview (ecxept where overlapping it, of course).

Actual Results:
Superview becomes briefly invisible. If the window's contentView is layer-backed, whole window becomes invisible.

Version:
OS X 10.9 Mavericks (older OS X versions not tested)

You can find a minimal demo project at https://bitbucket.org/atlasti/blendmodeproblemtest/

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!