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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 // cc::ContextProvider implementation. | 28 // cc::ContextProvider implementation. |
29 virtual bool BindToCurrentThread() OVERRIDE { return true; } | 29 virtual bool BindToCurrentThread() OVERRIDE { return true; } |
30 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE { | 30 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE { |
31 return gles2_client_impl_->Interface(); | 31 return gles2_client_impl_->Interface(); |
32 } | 32 } |
33 virtual gpu::ContextSupport* ContextSupport() OVERRIDE { | 33 virtual gpu::ContextSupport* ContextSupport() OVERRIDE { |
34 return gles2_client_impl_->Support(); | 34 return gles2_client_impl_->Support(); |
35 } | 35 } |
36 virtual class GrContext* GrContext() OVERRIDE { return NULL; } | 36 virtual class GrContext* GrContext() OVERRIDE { return NULL; } |
37 virtual void MakeGrContextCurrent() OVERRIDE {} | |
38 virtual Capabilities ContextCapabilities() OVERRIDE { return capabilities_; } | 37 virtual Capabilities ContextCapabilities() OVERRIDE { return capabilities_; } |
39 virtual bool IsContextLost() OVERRIDE { | 38 virtual bool IsContextLost() OVERRIDE { |
40 return !gles2_client_impl_->Interface(); | 39 return !gles2_client_impl_->Interface(); |
41 } | 40 } |
42 virtual void VerifyContexts() OVERRIDE {} | 41 virtual void VerifyContexts() OVERRIDE {} |
43 virtual bool DestroyedOnMainThread() OVERRIDE { | 42 virtual bool DestroyedOnMainThread() OVERRIDE { |
44 return !gles2_client_impl_->Interface(); | 43 return !gles2_client_impl_->Interface(); |
45 } | 44 } |
46 virtual void SetLostContextCallback( | 45 virtual void SetLostContextCallback( |
47 const LostContextCallback& lost_context_callback) OVERRIDE {} | 46 const LostContextCallback& lost_context_callback) OVERRIDE {} |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 } | 122 } |
124 | 123 |
125 void DemoContextFactory::RemoveCompositor(ui::Compositor* compositor) { | 124 void DemoContextFactory::RemoveCompositor(ui::Compositor* compositor) { |
126 } | 125 } |
127 | 126 |
128 bool DemoContextFactory::DoesCreateTestContexts() { return false; } | 127 bool DemoContextFactory::DoesCreateTestContexts() { return false; } |
129 | 128 |
130 } // namespace examples | 129 } // namespace examples |
131 } // namespace mojo | 130 } // namespace mojo |
132 | 131 |
OLD | NEW |