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

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

Issue 2275113002: Provide task runner to GLES2Impl / CommandBuffer at creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-cleanup4
Patch Set: cleanup 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>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 std::unique_ptr<gpu::TransferBuffer> transfer_buffer_; 80 std::unique_ptr<gpu::TransferBuffer> transfer_buffer_;
81 std::unique_ptr<gpu::gles2::GLES2Implementation> implementation_; 81 std::unique_ptr<gpu::gles2::GLES2Implementation> implementation_;
82 82
83 gpu::Capabilities capabilities_; 83 gpu::Capabilities capabilities_;
84 LostContextCallback lost_context_callback_; 84 LostContextCallback lost_context_callback_;
85 85
86 SurfacesContextProviderDelegate* delegate_; 86 SurfacesContextProviderDelegate* delegate_;
87 gfx::AcceleratedWidget widget_; 87 gfx::AcceleratedWidget widget_;
88 std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_; 88 std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_;
89 gl::GLSurface::SwapCompletionCallback swap_buffers_completion_callback_; 89 gl::GLSurface::SwapCompletionCallback swap_buffers_completion_callback_;
90 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
90 91
91 DISALLOW_COPY_AND_ASSIGN(SurfacesContextProvider); 92 DISALLOW_COPY_AND_ASSIGN(SurfacesContextProvider);
92 }; 93 };
93 94
94 } // namespace ui 95 } // namespace ui
95 96
96 #endif // SERVICES_UI_SURFACES_SURFACES_CONTEXT_PROVIDER_H_ 97 #endif // SERVICES_UI_SURFACES_SURFACES_CONTEXT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698