| 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 #ifndef COMPONENTS_MUS_PUBLIC_CPP_CONTEXT_PROVIDER_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_CONTEXT_PROVIDER_H_ |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_CONTEXT_PROVIDER_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_CONTEXT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "cc/output/context_provider.h" | 13 #include "cc/output/context_provider.h" |
| 14 #include "components/mus/public/interfaces/command_buffer.mojom.h" | |
| 15 #include "mojo/public/cpp/system/core.h" | 14 #include "mojo/public/cpp/system/core.h" |
| 15 #include "services/ui/public/interfaces/command_buffer.mojom.h" |
| 16 | 16 |
| 17 namespace shell { | 17 namespace shell { |
| 18 class Connector; | 18 class Connector; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace mus { | 21 namespace mus { |
| 22 | 22 |
| 23 class GLES2Context; | 23 class GLES2Context; |
| 24 | 24 |
| 25 class ContextProvider : public cc::ContextProvider { | 25 class ContextProvider : public cc::ContextProvider { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 std::unique_ptr<shell::Connector> connector_; | 46 std::unique_ptr<shell::Connector> connector_; |
| 47 std::unique_ptr<GLES2Context> context_; | 47 std::unique_ptr<GLES2Context> context_; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(ContextProvider); | 49 DISALLOW_COPY_AND_ASSIGN(ContextProvider); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace mus | 52 } // namespace mus |
| 53 | 53 |
| 54 #endif // COMPONENTS_MUS_PUBLIC_CPP_CONTEXT_PROVIDER_H_ | 54 #endif // SERVICES_UI_PUBLIC_CPP_CONTEXT_PROVIDER_H_ |
| OLD | NEW |