Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: services/ui/surfaces/surfaces_context_provider.h

Issue 2286873003: Provide TaskRunner to ContextCacheController (Closed)
Patch Set: fix unittests Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 class GpuChannelHost; 25 class GpuChannelHost;
22 struct GpuProcessHostedCALayerTreeParamsMac; 26 struct GpuProcessHostedCALayerTreeParamsMac;
23 class TransferBuffer; 27 class TransferBuffer;
24 28
25 namespace gles2 { 29 namespace gles2 {
26 class GLES2CmdHelper; 30 class GLES2CmdHelper;
27 class GLES2Implementation; 31 class GLES2Implementation;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 std::unique_ptr<gpu::gles2::GLES2Implementation> implementation_; 87 std::unique_ptr<gpu::gles2::GLES2Implementation> implementation_;
84 std::unique_ptr<cc::ContextCacheController> cache_controller_; 88 std::unique_ptr<cc::ContextCacheController> cache_controller_;
85 89
86 gpu::Capabilities capabilities_; 90 gpu::Capabilities capabilities_;
87 LostContextCallback lost_context_callback_; 91 LostContextCallback lost_context_callback_;
88 92
89 SurfacesContextProviderDelegate* delegate_; 93 SurfacesContextProviderDelegate* delegate_;
90 gfx::AcceleratedWidget widget_; 94 gfx::AcceleratedWidget widget_;
91 std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_; 95 std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_;
92 gl::GLSurface::SwapCompletionCallback swap_buffers_completion_callback_; 96 gl::GLSurface::SwapCompletionCallback swap_buffers_completion_callback_;
97 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
93 98
94 DISALLOW_COPY_AND_ASSIGN(SurfacesContextProvider); 99 DISALLOW_COPY_AND_ASSIGN(SurfacesContextProvider);
95 }; 100 };
96 101
97 } // namespace ui 102 } // namespace ui
98 103
99 #endif // SERVICES_UI_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ 104 #endif // SERVICES_UI_SURFACES_SURFACES_CONTEXT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698