Commit 21293f7a authored by kinuko@chromium.org's avatar kinuko@chromium.org

Revert 242026 "Get Windows 8 ASH to work again. "

After this was landed almost all tests in ash_unittests are crashing.
http://build.chromium.org/p/chromium.win/buildstatus?builder=Win8%20Aura&number=13804
http://build.chromium.org/p/chromium.win/builders/Win8%20Aura/builds/13804/steps/ash_unittests/logs/stdio

> Get Windows 8 ASH to work again. 
> 
> This broke in revision 236017 which creates the compositor in the ctor of the RemoteRootWindowHostWin class.
> This in turn uses the GetAcceleratedWidget function which returns the desktop window as the metro viewer is not yet
> connected to the browser.
> 
> Moving the CreateCompositor call to the RemoteRootWindowHostWin::Connected function fixes this.
> 
> BUG=none
> TBR=ben
> 
> Review URL: https://codereview.chromium.org/64363004

TBR=ananta@chromium.org

Review URL: https://codereview.chromium.org/119863002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242053 0039d316-1c4b-4281-b951-d872f2087c98
parent 391c93a5
......@@ -162,6 +162,7 @@ RemoteRootWindowHostWin::RemoteRootWindowHostWin(const gfx::Rect& bounds)
event_flags_(0),
window_size_(aura::RootWindowHost::GetNativeScreenSize()) {
prop_.reset(new ui::ViewProp(NULL, kRootWindowHostWinKey, this));
CreateCompositor(GetAcceleratedWidget());
}
RemoteRootWindowHostWin::~RemoteRootWindowHostWin() {
......@@ -172,7 +173,6 @@ void RemoteRootWindowHostWin::Connected(IPC::Sender* host, HWND remote_window) {
CHECK(host_ == NULL);
host_ = host;
remote_window_ = remote_window;
CreateCompositor(remote_window_);
}
void RemoteRootWindowHostWin::Disconnected() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment