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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 2488913003: Replacing allocate bitmap IPC messages with a new Mojo interface. (Closed)
Patch Set: Clean-up Created 4 years 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 (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_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 class AppCacheDispatcher; 101 class AppCacheDispatcher;
102 class AecDumpMessageFilter; 102 class AecDumpMessageFilter;
103 class AudioInputMessageFilter; 103 class AudioInputMessageFilter;
104 class AudioMessageFilter; 104 class AudioMessageFilter;
105 class AudioRendererMixerManager; 105 class AudioRendererMixerManager;
106 class BlobMessageFilter; 106 class BlobMessageFilter;
107 class BrowserPluginManager; 107 class BrowserPluginManager;
108 class CacheStorageDispatcher; 108 class CacheStorageDispatcher;
109 class ChildGpuMemoryBufferManager; 109 class ChildGpuMemoryBufferManager;
110 class ChildSharedBitmapManager;
110 class CompositorForwardingMessageFilter; 111 class CompositorForwardingMessageFilter;
111 class ContextProviderCommandBuffer; 112 class ContextProviderCommandBuffer;
112 class DBMessageFilter; 113 class DBMessageFilter;
113 class DevToolsAgentFilter; 114 class DevToolsAgentFilter;
114 class DomStorageDispatcher; 115 class DomStorageDispatcher;
115 class EmbeddedWorkerDispatcher; 116 class EmbeddedWorkerDispatcher;
116 class FrameSwapMessageQueue; 117 class FrameSwapMessageQueue;
117 class IndexedDBDispatcher; 118 class IndexedDBDispatcher;
118 class InputHandlerManager; 119 class InputHandlerManager;
119 class MediaStreamCenter; 120 class MediaStreamCenter;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. 339 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled.
339 P2PSocketDispatcher* p2p_socket_dispatcher() { 340 P2PSocketDispatcher* p2p_socket_dispatcher() {
340 return p2p_socket_dispatcher_.get(); 341 return p2p_socket_dispatcher_.get();
341 } 342 }
342 #endif 343 #endif
343 344
344 VideoCaptureImplManager* video_capture_impl_manager() const { 345 VideoCaptureImplManager* video_capture_impl_manager() const {
345 return vc_manager_.get(); 346 return vc_manager_.get();
346 } 347 }
347 348
349 ChildSharedBitmapManager* shared_bitmap_manager() const {
350 return shared_bitmap_manager_.get();
351 }
352
348 mojom::RenderFrameMessageFilter* render_frame_message_filter(); 353 mojom::RenderFrameMessageFilter* render_frame_message_filter();
349 mojom::RenderMessageFilter* render_message_filter(); 354 mojom::RenderMessageFilter* render_message_filter();
350 const scoped_refptr<mojom::ThreadSafeRenderMessageFilterAssociatedPtr>& 355 const scoped_refptr<mojom::ThreadSafeRenderMessageFilterAssociatedPtr>&
351 thread_safe_render_message_filter(); 356 thread_safe_render_message_filter();
352 357
353 // Get the GPU channel. Returns NULL if the channel is not established or 358 // Get the GPU channel. Returns NULL if the channel is not established or
354 // has been lost. 359 // has been lost.
355 gpu::GpuChannelHost* GetGpuChannel(); 360 gpu::GpuChannelHost* GetGpuChannel();
356 361
357 // Returns a SingleThreadTaskRunner instance corresponding to the message loop 362 // Returns a SingleThreadTaskRunner instance corresponding to the message loop
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 // diagnostic audio data for WebRTC stored locally when enabled by the user in 597 // diagnostic audio data for WebRTC stored locally when enabled by the user in
593 // chrome://webrtc-internals. 598 // chrome://webrtc-internals.
594 scoped_refptr<AecDumpMessageFilter> aec_dump_message_filter_; 599 scoped_refptr<AecDumpMessageFilter> aec_dump_message_filter_;
595 #endif 600 #endif
596 601
597 // Used on the render thread. 602 // Used on the render thread.
598 std::unique_ptr<VideoCaptureImplManager> vc_manager_; 603 std::unique_ptr<VideoCaptureImplManager> vc_manager_;
599 std::unique_ptr<ThreadSafeAssociatedInterfacePtrProvider> 604 std::unique_ptr<ThreadSafeAssociatedInterfacePtrProvider>
600 thread_safe_associated_interface_ptr_provider_; 605 thread_safe_associated_interface_ptr_provider_;
601 606
607 std::unique_ptr<ChildSharedBitmapManager> shared_bitmap_manager_;
608
602 // The count of RenderWidgets running through this thread. 609 // The count of RenderWidgets running through this thread.
603 int widget_count_; 610 int widget_count_;
604 611
605 // The count of hidden RenderWidgets running through this thread. 612 // The count of hidden RenderWidgets running through this thread.
606 int hidden_widget_count_; 613 int hidden_widget_count_;
607 614
608 // The current value of the idle notification timer delay. 615 // The current value of the idle notification timer delay.
609 int64_t idle_notification_delay_in_ms_; 616 int64_t idle_notification_delay_in_ms_;
610 617
611 // The number of idle handler calls that skip sending idle notifications. 618 // The number of idle handler calls that skip sending idle notifications.
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 757 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
751 }; 758 };
752 759
753 #if defined(COMPILER_MSVC) 760 #if defined(COMPILER_MSVC)
754 #pragma warning(pop) 761 #pragma warning(pop)
755 #endif 762 #endif
756 763
757 } // namespace content 764 } // namespace content
758 765
759 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 766 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698