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

Side by Side Diff: content/child/child_thread.h

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 years, 2 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
« no previous file with comments | « content/child/child_gpu_memory_buffer_manager.cc ('k') | content/child/child_thread.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_CHILD_CHILD_THREAD_H_ 5 #ifndef CONTENT_CHILD_CHILD_THREAD_H_
6 #define CONTENT_CHILD_CHILD_THREAD_H_ 6 #define CONTENT_CHILD_CHILD_THREAD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 18 matching lines...) Expand all
29 namespace IPC { 29 namespace IPC {
30 class SyncChannel; 30 class SyncChannel;
31 class SyncMessageFilter; 31 class SyncMessageFilter;
32 } // namespace IPC 32 } // namespace IPC
33 33
34 namespace blink { 34 namespace blink {
35 class WebFrame; 35 class WebFrame;
36 } // namespace blink 36 } // namespace blink
37 37
38 namespace content { 38 namespace content {
39 class ChildGpuMemoryBufferManager;
39 class ChildHistogramMessageFilter; 40 class ChildHistogramMessageFilter;
40 class ChildResourceMessageFilter; 41 class ChildResourceMessageFilter;
41 class ChildSharedBitmapManager; 42 class ChildSharedBitmapManager;
42 class FileSystemDispatcher; 43 class FileSystemDispatcher;
43 class GeofencingMessageFilter; 44 class GeofencingMessageFilter;
44 class ServiceWorkerMessageFilter; 45 class ServiceWorkerMessageFilter;
45 class QuotaDispatcher; 46 class QuotaDispatcher;
46 class QuotaMessageFilter; 47 class QuotaMessageFilter;
47 class ResourceDispatcher; 48 class ResourceDispatcher;
48 class SocketStreamDispatcher; 49 class SocketStreamDispatcher;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 91
91 // A static variant that can be called on background threads provided 92 // A static variant that can be called on background threads provided
92 // the |sender| passed in is safe to use on background threads. 93 // the |sender| passed in is safe to use on background threads.
93 static base::SharedMemory* AllocateSharedMemory(size_t buf_size, 94 static base::SharedMemory* AllocateSharedMemory(size_t buf_size,
94 IPC::Sender* sender); 95 IPC::Sender* sender);
95 96
96 ChildSharedBitmapManager* shared_bitmap_manager() const { 97 ChildSharedBitmapManager* shared_bitmap_manager() const {
97 return shared_bitmap_manager_.get(); 98 return shared_bitmap_manager_.get();
98 } 99 }
99 100
101 ChildGpuMemoryBufferManager* gpu_memory_buffer_manager() const {
102 return gpu_memory_buffer_manager_.get();
103 }
104
100 ResourceDispatcher* resource_dispatcher() const { 105 ResourceDispatcher* resource_dispatcher() const {
101 return resource_dispatcher_.get(); 106 return resource_dispatcher_.get();
102 } 107 }
103 108
104 SocketStreamDispatcher* socket_stream_dispatcher() const { 109 SocketStreamDispatcher* socket_stream_dispatcher() const {
105 return socket_stream_dispatcher_.get(); 110 return socket_stream_dispatcher_.get();
106 } 111 }
107 112
108 WebSocketDispatcher* websocket_dispatcher() const { 113 WebSocketDispatcher* websocket_dispatcher() const {
109 return websocket_dispatcher_.get(); 114 return websocket_dispatcher_.get();
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 scoped_refptr<ChildHistogramMessageFilter> histogram_message_filter_; 240 scoped_refptr<ChildHistogramMessageFilter> histogram_message_filter_;
236 241
237 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_; 242 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_;
238 243
239 scoped_refptr<ServiceWorkerMessageFilter> service_worker_message_filter_; 244 scoped_refptr<ServiceWorkerMessageFilter> service_worker_message_filter_;
240 245
241 scoped_refptr<QuotaMessageFilter> quota_message_filter_; 246 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
242 247
243 scoped_ptr<ChildSharedBitmapManager> shared_bitmap_manager_; 248 scoped_ptr<ChildSharedBitmapManager> shared_bitmap_manager_;
244 249
250 scoped_ptr<ChildGpuMemoryBufferManager> gpu_memory_buffer_manager_;
251
245 // Observes the trace event system. When tracing is enabled, optionally 252 // Observes the trace event system. When tracing is enabled, optionally
246 // starts profiling the tcmalloc heap. 253 // starts profiling the tcmalloc heap.
247 scoped_ptr<base::debug::TraceMemoryController> trace_memory_controller_; 254 scoped_ptr<base::debug::TraceMemoryController> trace_memory_controller_;
248 255
249 scoped_ptr<base::PowerMonitor> power_monitor_; 256 scoped_ptr<base::PowerMonitor> power_monitor_;
250 257
251 scoped_refptr<GeofencingMessageFilter> geofencing_message_filter_; 258 scoped_refptr<GeofencingMessageFilter> geofencing_message_filter_;
252 259
253 bool in_browser_process_; 260 bool in_browser_process_;
254 261
255 base::WeakPtrFactory<ChildThread> channel_connected_factory_; 262 base::WeakPtrFactory<ChildThread> channel_connected_factory_;
256 263
257 DISALLOW_COPY_AND_ASSIGN(ChildThread); 264 DISALLOW_COPY_AND_ASSIGN(ChildThread);
258 }; 265 };
259 266
260 } // namespace content 267 } // namespace content
261 268
262 #endif // CONTENT_CHILD_CHILD_THREAD_H_ 269 #endif // CONTENT_CHILD_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « content/child/child_gpu_memory_buffer_manager.cc ('k') | content/child/child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698