Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / ui / compositor / test / test_compositor_host_win.cc
index 3f0e5dc..9c732f6 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "base/compiler_specific.h"
 #include "base/memory/scoped_ptr.h"
+#include "base/message_loop/message_loop.h"
 #include "ui/compositor/compositor.h"
 #include "ui/gfx/win/window_impl.h"
 
@@ -17,7 +18,9 @@ class TestCompositorHostWin : public TestCompositorHost,
   TestCompositorHostWin(const gfx::Rect& bounds,
                         ui::ContextFactory* context_factory) {
     Init(NULL, bounds);
-    compositor_.reset(new ui::Compositor(hwnd(), context_factory));
+    compositor_.reset(new ui::Compositor(hwnd(),
+                                         context_factory,
+                                         base::MessageLoopProxy::current()));
     compositor_->SetScaleAndSize(1.0f, GetSize());
   }