| 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_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ | 5 #ifndef COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ |
| 6 #define COMPONENTS_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ | 6 #define COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
| 10 #include "cc/output/context_provider.h" | 10 #include "cc/output/context_provider.h" |
| 11 #include "third_party/mojo/src/mojo/public/c/gles2/gles2.h" | 11 #include "third_party/mojo/src/mojo/public/c/gles2/gles2.h" |
| 12 #include "third_party/mojo/src/mojo/public/cpp/system/core.h" | 12 #include "third_party/mojo/src/mojo/public/cpp/system/core.h" |
| 13 | 13 |
| 14 namespace surfaces { | 14 namespace surfaces { |
| 15 | 15 |
| 16 class SurfacesContextProvider : public cc::ContextProvider { | 16 class SurfacesContextProvider : public cc::ContextProvider { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 bool context_lost_; | 53 bool context_lost_; |
| 54 LostContextCallback lost_context_callback_; | 54 LostContextCallback lost_context_callback_; |
| 55 | 55 |
| 56 base::Lock context_lock_; | 56 base::Lock context_lock_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(SurfacesContextProvider); | 58 DISALLOW_COPY_AND_ASSIGN(SurfacesContextProvider); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace surfaces | 61 } // namespace surfaces |
| 62 | 62 |
| 63 #endif // COMPONENTS_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ | 63 #endif // COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ |
| OLD | NEW |