Index: ash/host/ash_window_tree_host_x11.cc |
diff --git a/ash/host/ash_window_tree_host_x11.cc b/ash/host/ash_window_tree_host_x11.cc |
index 882ef13409b01a0ddfaca88b6412efdec2f3bc5e..c82d9154ba74d53a333bdbf41c4184f817aa8442 100644 |
--- a/ash/host/ash_window_tree_host_x11.cc |
+++ b/ash/host/ash_window_tree_host_x11.cc |
@@ -13,6 +13,7 @@ |
#include <vector> |
#include "ash/host/ash_window_tree_host_init_params.h" |
+#include "ash/host/ash_window_tree_host_unified.h" |
#include "ash/host/root_window_transformer.h" |
#include "base/basictypes.h" |
#include "base/sys_info.h" |
@@ -280,6 +281,8 @@ void AshWindowTreeHostX11::SetCrOSTapPaused(bool state) { |
AshWindowTreeHost* AshWindowTreeHost::Create( |
const AshWindowTreeHostInitParams& init_params) { |
+ if (init_params.offscreen) |
+ return new AshWindowTreeHostUnified(init_params.initial_bounds); |
return new AshWindowTreeHostX11(init_params.initial_bounds); |
} |