X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fui%2Fapp_list%2Fcocoa%2Fapp_list_view_controller.mm;h=77c8245669a75b84179ecb14d1f37e20b7ccdf6f;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=b8958f4b71729b07ac593cfee61efa9f8e1af0be;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/ui/app_list/cocoa/app_list_view_controller.mm b/src/ui/app_list/cocoa/app_list_view_controller.mm index b8958f4..77c8245 100644 --- a/src/ui/app_list/cocoa/app_list_view_controller.mm +++ b/src/ui/app_list/cocoa/app_list_view_controller.mm @@ -5,6 +5,7 @@ #import "ui/app_list/cocoa/app_list_view_controller.h" #include "base/mac/foundation_util.h" +#include "base/mac/mac_util.h" #include "base/strings/string_util.h" #include "base/strings/sys_string_conversions.h" #include "skia/ext/skia_utils_mac.h" @@ -199,9 +200,12 @@ void AppListModelObserverBridge::OnProfilesChanged() { contentsView_.reset([[FlippedView alloc] initWithFrame:contentsRect]); // The contents view contains animations both from an NSCollectionView and the - // app list's own transitive drag layers. Ensure the subviews have access to - // a compositing layer they can share. - [contentsView_ setWantsLayer:YES]; + // app list's own transitive drag layers. On Mavericks, the subviews need to + // have access to a compositing layer they can share. Otherwise the compositor + // makes tearing artifacts. However, doing this on Mountain Lion or earler + // results in flickering whilst an item is installing. + if (base::mac::IsOSMavericksOrLater()) + [contentsView_ setWantsLayer:YES]; backgroundView_.reset( [[BackgroundView alloc] initWithFrame: