Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: ui/accelerated_widget_mac/ca_layer_tree_coordinator.mm

Issue 2391793002: Mac: Fix bugs in Sierra color fix (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/accelerated_widget_mac/ca_layer_tree_unittest_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accelerated_widget_mac/ca_layer_tree_coordinator.mm
diff --git a/ui/accelerated_widget_mac/ca_layer_tree_coordinator.mm b/ui/accelerated_widget_mac/ca_layer_tree_coordinator.mm
index 76ce11ef4f4cd6588a5b57826b91e2ab7b66096d..05d85c50ecec16f96a2f71aea4615589daf2f101 100644
--- a/ui/accelerated_widget_mac/ca_layer_tree_coordinator.mm
+++ b/ui/accelerated_widget_mac/ca_layer_tree_coordinator.mm
@@ -6,6 +6,7 @@
#include <AVFoundation/AVFoundation.h>
+#include "base/mac/mac_util.h"
#include "base/trace_event/trace_event.h"
#include "ui/base/cocoa/animation_utils.h"
@@ -61,8 +62,8 @@
"specified, but not both.";
}
if (!pending_ca_renderer_layer_tree_)
- pending_ca_renderer_layer_tree_.reset(
- new CARendererLayerTree(allow_av_sample_buffer_display_layer_));
+ pending_ca_renderer_layer_tree_.reset(new CARendererLayerTree(
+ allow_av_sample_buffer_display_layer_, base::mac::IsAtLeastOS10_12()));
return pending_ca_renderer_layer_tree_.get();
}
« no previous file with comments | « no previous file | ui/accelerated_widget_mac/ca_layer_tree_unittest_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698