Roll ANGLE.
[chromium-blink-merge.git] / mojo / aura / aura_init.cc
bloba99ce25fc3a88d448d76ea32b785c7fcb275bb95
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "mojo/aura/aura_init.h"
7 #include "mojo/aura/context_factory_mojo.h"
8 #include "mojo/aura/screen_mojo.h"
9 #include "ui/aura/env.h"
11 namespace mojo {
13 AuraInit::AuraInit() {
14 aura::Env::CreateInstance(true);
16 context_factory_.reset(new ContextFactoryMojo);
17 aura::Env::GetInstance()->set_context_factory(context_factory_.get());
19 screen_.reset(ScreenMojo::Create());
20 gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, screen_.get());
23 AuraInit::~AuraInit() {
26 } // namespace mojo