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

Side by Side Diff: content/common/gpu/client/gpu_channel_host.h

Issue 583043005: Pending tasks in a message loop should be deleted before shutting down Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | content/common/gpu/client/gpu_channel_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 scoped_ptr<media::VideoDecodeAccelerator> CreateVideoDecoder( 123 scoped_ptr<media::VideoDecodeAccelerator> CreateVideoDecoder(
124 int command_buffer_route_id); 124 int command_buffer_route_id);
125 125
126 // Creates a video encoder in the GPU process. 126 // Creates a video encoder in the GPU process.
127 scoped_ptr<media::VideoEncodeAccelerator> CreateVideoEncoder( 127 scoped_ptr<media::VideoEncodeAccelerator> CreateVideoEncoder(
128 int command_buffer_route_id); 128 int command_buffer_route_id);
129 129
130 // Destroy a command buffer created by this channel. 130 // Destroy a command buffer created by this channel.
131 void DestroyCommandBuffer(CommandBufferProxyImpl* command_buffer); 131 void DestroyCommandBuffer(CommandBufferProxyImpl* command_buffer);
132 132
133 // Destroy this channel.
134 void DestroyChannel();
135
133 // Add a route for the current message loop. 136 // Add a route for the current message loop.
134 void AddRoute(int route_id, base::WeakPtr<IPC::Listener> listener); 137 void AddRoute(int route_id, base::WeakPtr<IPC::Listener> listener);
135 void RemoveRoute(int route_id); 138 void RemoveRoute(int route_id);
136 139
137 GpuChannelHostFactory* factory() const { return factory_; } 140 GpuChannelHostFactory* factory() const { return factory_; }
138 141
139 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager() const { 142 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager() const {
140 return gpu_memory_buffer_manager_; 143 return gpu_memory_buffer_manager_;
141 } 144 }
142 145
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // Used to look up a proxy from its routing id. 245 // Used to look up a proxy from its routing id.
243 typedef base::hash_map<int, CommandBufferProxyImpl*> ProxyMap; 246 typedef base::hash_map<int, CommandBufferProxyImpl*> ProxyMap;
244 ProxyMap proxies_; 247 ProxyMap proxies_;
245 248
246 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 249 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
247 }; 250 };
248 251
249 } // namespace content 252 } // namespace content
250 253
251 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 254 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/client/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698