Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Side by Side Diff: mojo/examples/aura_demo/demo_context_factory.cc

Issue 126513004: Rename RootWindowHost to WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/examples/aura_demo/demo_context_factory.h" 5 #include "mojo/examples/aura_demo/demo_context_factory.h"
6 6
7 #include "cc/output/context_provider.h" 7 #include "cc/output/context_provider.h"
8 #include "cc/output/output_surface.h" 8 #include "cc/output/output_surface.h"
9 #include "mojo/examples/aura_demo/root_window_host_mojo.h" 9 #include "mojo/examples/aura_demo/root_window_host_mojo.h"
10 #include "mojo/examples/compositor_app/gles2_client_impl.h" 10 #include "mojo/examples/compositor_app/gles2_client_impl.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 friend class base::RefCountedThreadSafe<MojoContextProvider>; 54 friend class base::RefCountedThreadSafe<MojoContextProvider>;
55 virtual ~MojoContextProvider() {} 55 virtual ~MojoContextProvider() {}
56 56
57 private: 57 private:
58 cc::ContextProvider::Capabilities capabilities_; 58 cc::ContextProvider::Capabilities capabilities_;
59 GLES2ClientImpl* gles2_client_impl_; 59 GLES2ClientImpl* gles2_client_impl_;
60 }; 60 };
61 61
62 } // namespace 62 } // namespace
63 63
64 DemoContextFactory::DemoContextFactory(RootWindowHostMojo* rwhm) : rwhm_(rwhm) { 64 DemoContextFactory::DemoContextFactory(WindowTreeHostMojo* rwhm) : rwhm_(rwhm) {
65 } 65 }
66 66
67 DemoContextFactory::~DemoContextFactory() { 67 DemoContextFactory::~DemoContextFactory() {
68 } 68 }
69 69
70 bool DemoContextFactory::Initialize() { 70 bool DemoContextFactory::Initialize() {
71 if (!gfx::GLSurface::InitializeOneOff() || 71 if (!gfx::GLSurface::InitializeOneOff() ||
72 gfx::GetGLImplementation() == gfx::kGLImplementationNone) { 72 gfx::GetGLImplementation() == gfx::kGLImplementationNone) {
73 LOG(ERROR) << "Could not load the GL bindings"; 73 LOG(ERROR) << "Could not load the GL bindings";
74 return false; 74 return false;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 124 }
125 125
126 void DemoContextFactory::RemoveCompositor(ui::Compositor* compositor) { 126 void DemoContextFactory::RemoveCompositor(ui::Compositor* compositor) {
127 } 127 }
128 128
129 bool DemoContextFactory::DoesCreateTestContexts() { return false; } 129 bool DemoContextFactory::DoesCreateTestContexts() { return false; }
130 130
131 } // namespace examples 131 } // namespace examples
132 } // namespace mojo 132 } // namespace mojo
133 133
OLDNEW
« no previous file with comments | « mojo/examples/aura_demo/demo_context_factory.h ('k') | mojo/examples/aura_demo/root_window_host_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698