Index: ui/compositor/compositor_switches.cc |
diff --git a/ui/compositor/compositor_switches.cc b/ui/compositor/compositor_switches.cc |
index b041d885b938a53d11367a18b9f4e7c7f70636bb..afbaa580c4a3251cbe7ff9f2ac07961bc1fe0a88 100644 |
--- a/ui/compositor/compositor_switches.cc |
+++ b/ui/compositor/compositor_switches.cc |
@@ -41,4 +41,9 @@ bool IsUIZeroCopyEnabled() { |
return command_line.HasSwitch(switches::kUIEnableZeroCopy); |
} |
+bool IsUIOneCopyEnabled() { |
+ // One-copy is on by default unless zero copy is enabled. |
+ return !IsUIZeroCopyEnabled(); |
+} |
+ |
} // namespace ui |