| 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 COMPONENTS_MUS_PUBLIC_CPP_CONTEXT_PROVIDER_H_ |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_CONTEXT_PROVIDER_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_CONTEXT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
| 11 #include "cc/output/context_provider.h" | 13 #include "cc/output/context_provider.h" |
| 12 #include "mojo/public/c/gles2/gles2_types.h" | 14 #include "mojo/public/c/gles2/gles2_types.h" |
| 13 #include "mojo/public/cpp/system/core.h" | 15 #include "mojo/public/cpp/system/core.h" |
| 14 | 16 |
| 15 namespace mus { | 17 namespace mus { |
| 16 | 18 |
| 17 class ContextProvider : public cc::ContextProvider { | 19 class ContextProvider : public cc::ContextProvider { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 47 scoped_ptr<gpu::gles2::GLES2Interface> context_gl_; | 49 scoped_ptr<gpu::gles2::GLES2Interface> context_gl_; |
| 48 | 50 |
| 49 base::Lock context_lock_; | 51 base::Lock context_lock_; |
| 50 | 52 |
| 51 DISALLOW_COPY_AND_ASSIGN(ContextProvider); | 53 DISALLOW_COPY_AND_ASSIGN(ContextProvider); |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 } // namespace mus | 56 } // namespace mus |
| 55 | 57 |
| 56 #endif // COMPONENTS_MUS_PUBLIC_CPP_CONTEXT_PROVIDER_H_ | 58 #endif // COMPONENTS_MUS_PUBLIC_CPP_CONTEXT_PROVIDER_H_ |
| OLD | NEW |