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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2418383002: sync compositor: Signal async frame on IO thread (Closed)
Patch Set: typo Created 4 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
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_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 21 matching lines...) Expand all
32 #include "ipc/ipc_channel_proxy.h" 32 #include "ipc/ipc_channel_proxy.h"
33 #include "ipc/ipc_platform_file.h" 33 #include "ipc/ipc_platform_file.h"
34 #include "mojo/public/cpp/bindings/associated_binding.h" 34 #include "mojo/public/cpp/bindings/associated_binding.h"
35 #include "mojo/public/cpp/bindings/associated_binding_set.h" 35 #include "mojo/public/cpp/bindings/associated_binding_set.h"
36 #include "mojo/public/cpp/bindings/interface_ptr.h" 36 #include "mojo/public/cpp/bindings/interface_ptr.h"
37 #include "services/service_manager/public/cpp/interface_registry.h" 37 #include "services/service_manager/public/cpp/interface_registry.h"
38 #include "services/service_manager/public/interfaces/service.mojom.h" 38 #include "services/service_manager/public/interfaces/service.mojom.h"
39 #include "ui/gfx/gpu_memory_buffer.h" 39 #include "ui/gfx/gpu_memory_buffer.h"
40 #include "ui/gl/gpu_switching_observer.h" 40 #include "ui/gl/gpu_switching_observer.h"
41 41
42 #if defined(OS_ANDROID)
43 #include "content/browser/android/synchronous_compositor_observer.h"
44 #endif
45
42 namespace base { 46 namespace base {
43 class CommandLine; 47 class CommandLine;
44 class MessageLoop; 48 class MessageLoop;
45 class SharedPersistentMemoryAllocator; 49 class SharedPersistentMemoryAllocator;
46 } 50 }
47 51
48 namespace gfx { 52 namespace gfx {
49 class Size; 53 class Size;
50 } 54 }
51 55
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 } 259 }
256 260
257 MessagePortMessageFilter* message_port_message_filter() const { 261 MessagePortMessageFilter* message_port_message_filter() const {
258 return message_port_message_filter_.get(); 262 return message_port_message_filter_.get();
259 } 263 }
260 264
261 NotificationMessageFilter* notification_message_filter() const { 265 NotificationMessageFilter* notification_message_filter() const {
262 return notification_message_filter_.get(); 266 return notification_message_filter_.get();
263 } 267 }
264 268
269 #if defined(OS_ANDROID)
270 SynchronousCompositorObserver* synchronous_compositor_filter() const {
271 return synchronous_compositor_filter_.get();
272 }
273 #endif
274
265 void set_is_for_guests_only_for_testing(bool is_for_guests_only) { 275 void set_is_for_guests_only_for_testing(bool is_for_guests_only) {
266 is_for_guests_only_ = is_for_guests_only; 276 is_for_guests_only_ = is_for_guests_only;
267 } 277 }
268 278
269 void GetAudioOutputControllers( 279 void GetAudioOutputControllers(
270 const GetAudioOutputControllersCallback& callback) const override; 280 const GetAudioOutputControllersCallback& callback) const override;
271 281
272 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) 282 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
273 // Launch the zygote early in the browser startup. 283 // Launch the zygote early in the browser startup.
274 static void EarlyZygoteLaunch(); 284 static void EarlyZygoteLaunch();
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 464
455 scoped_refptr<RenderFrameMessageFilter> render_frame_message_filter_; 465 scoped_refptr<RenderFrameMessageFilter> render_frame_message_filter_;
456 466
457 // The filter for MessagePort messages coming from the renderer. 467 // The filter for MessagePort messages coming from the renderer.
458 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_; 468 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_;
459 469
460 // The filter for Web Notification messages coming from the renderer. Holds a 470 // The filter for Web Notification messages coming from the renderer. Holds a
461 // closure per notification that must be freed when the notification closes. 471 // closure per notification that must be freed when the notification closes.
462 scoped_refptr<NotificationMessageFilter> notification_message_filter_; 472 scoped_refptr<NotificationMessageFilter> notification_message_filter_;
463 473
474 #if defined(OS_ANDROID)
475 scoped_refptr<SynchronousCompositorObserver> synchronous_compositor_filter_;
476 #endif
477
464 // Used in single-process mode. 478 // Used in single-process mode.
465 std::unique_ptr<base::Thread> in_process_renderer_; 479 std::unique_ptr<base::Thread> in_process_renderer_;
466 480
467 // True after Init() has been called. 481 // True after Init() has been called.
468 bool is_initialized_ = false; 482 bool is_initialized_ = false;
469 483
470 // True after ProcessDied(), until the next call to Init(). 484 // True after ProcessDied(), until the next call to Init().
471 bool is_dead_ = false; 485 bool is_dead_ = false;
472 486
473 // PlzNavigate 487 // PlzNavigate
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 instance_weak_factory_; 606 instance_weak_factory_;
593 607
594 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 608 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
595 609
596 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 610 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
597 }; 611 };
598 612
599 } // namespace content 613 } // namespace content
600 614
601 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 615 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/android/synchronous_compositor_observer.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698