OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |