| 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 SERVICES_UI_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ | 5 #ifndef SERVICES_UI_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ |
| 6 #define SERVICES_UI_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ | 6 #define SERVICES_UI_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/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
| 14 #include "cc/output/context_provider.h" | 14 #include "cc/output/context_provider.h" |
| 15 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
| 16 #include "ui/gl/gl_surface.h" | 16 #include "ui/gl/gl_surface.h" |
| 17 | 17 |
| 18 namespace base { |
| 19 class SingleThreadTaskRunner; |
| 20 } |
| 21 |
| 18 namespace gpu { | 22 namespace gpu { |
| 19 | 23 |
| 20 class CommandBufferProxyImpl; | 24 class CommandBufferProxyImpl; |
| 21 struct GpuProcessHostedCALayerTreeParamsMac; | 25 struct GpuProcessHostedCALayerTreeParamsMac; |
| 22 class TransferBuffer; | 26 class TransferBuffer; |
| 23 | 27 |
| 24 namespace gles2 { | 28 namespace gles2 { |
| 25 class GLES2CmdHelper; | 29 class GLES2CmdHelper; |
| 26 class GLES2Implementation; | 30 class GLES2Implementation; |
| 27 } | 31 } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 std::unique_ptr<gpu::gles2::GLES2Implementation> implementation_; | 85 std::unique_ptr<gpu::gles2::GLES2Implementation> implementation_; |
| 82 std::unique_ptr<cc::ContextCacheController> cache_controller_; | 86 std::unique_ptr<cc::ContextCacheController> cache_controller_; |
| 83 | 87 |
| 84 gpu::Capabilities capabilities_; | 88 gpu::Capabilities capabilities_; |
| 85 LostContextCallback lost_context_callback_; | 89 LostContextCallback lost_context_callback_; |
| 86 | 90 |
| 87 SurfacesContextProviderDelegate* delegate_; | 91 SurfacesContextProviderDelegate* delegate_; |
| 88 gfx::AcceleratedWidget widget_; | 92 gfx::AcceleratedWidget widget_; |
| 89 std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_; | 93 std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_; |
| 90 gl::GLSurface::SwapCompletionCallback swap_buffers_completion_callback_; | 94 gl::GLSurface::SwapCompletionCallback swap_buffers_completion_callback_; |
| 95 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 91 | 96 |
| 92 DISALLOW_COPY_AND_ASSIGN(SurfacesContextProvider); | 97 DISALLOW_COPY_AND_ASSIGN(SurfacesContextProvider); |
| 93 }; | 98 }; |
| 94 | 99 |
| 95 } // namespace ui | 100 } // namespace ui |
| 96 | 101 |
| 97 #endif // SERVICES_UI_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ | 102 #endif // SERVICES_UI_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ |
| OLD | NEW |