| 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_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ | 5 #ifndef COMPONENTS_MUS_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ |
| 6 #define COMPONENTS_MUS_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ | 6 #define COMPONENTS_MUS_SURFACES_SURFACES_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 "base/synchronization/lock.h" | |
| 14 #include "base/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
| 15 #include "cc/output/context_provider.h" | 14 #include "cc/output/context_provider.h" |
| 16 #include "components/mus/gles2/command_buffer_local_client.h" | 15 #include "components/mus/gles2/command_buffer_local_client.h" |
| 17 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
| 18 #include "ui/gl/gl_surface.h" | 17 #include "ui/gl/gl_surface.h" |
| 19 | 18 |
| 20 namespace gpu { | 19 namespace gpu { |
| 21 | 20 |
| 22 class TransferBuffer; | 21 class TransferBuffer; |
| 23 | 22 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 78 |
| 80 gpu::Capabilities capabilities_; | 79 gpu::Capabilities capabilities_; |
| 81 LostContextCallback lost_context_callback_; | 80 LostContextCallback lost_context_callback_; |
| 82 | 81 |
| 83 SurfacesContextProviderDelegate* delegate_; | 82 SurfacesContextProviderDelegate* delegate_; |
| 84 gfx::AcceleratedWidget widget_; | 83 gfx::AcceleratedWidget widget_; |
| 85 CommandBufferLocal* command_buffer_local_; | 84 CommandBufferLocal* command_buffer_local_; |
| 86 | 85 |
| 87 gfx::GLSurface::SwapCompletionCallback swap_buffers_completion_callback_; | 86 gfx::GLSurface::SwapCompletionCallback swap_buffers_completion_callback_; |
| 88 | 87 |
| 89 base::Lock context_lock_; | |
| 90 | |
| 91 DISALLOW_COPY_AND_ASSIGN(SurfacesContextProvider); | 88 DISALLOW_COPY_AND_ASSIGN(SurfacesContextProvider); |
| 92 }; | 89 }; |
| 93 | 90 |
| 94 } // namespace mus | 91 } // namespace mus |
| 95 | 92 |
| 96 #endif // COMPONENTS_MUS_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ | 93 #endif // COMPONENTS_MUS_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ |
| OLD | NEW |