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

Unified Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2418383002: sync compositor: Signal async frame on IO thread (Closed)
Patch Set: bad_message, and minor cleanups Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_process_host_impl.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index f0e65706b88381decf2063ab18391153f6d6bd80..76e8ae9c2b3826016af9a9c7fe44e497b8b9c1d4 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -39,6 +39,10 @@
#include "ui/gfx/gpu_memory_buffer.h"
#include "ui/gl/gpu_switching_observer.h"
+#if defined(OS_ANDROID)
+#include "content/browser/android/synchronous_compositor_observer.h"
+#endif
+
namespace base {
class CommandLine;
class MessageLoop;
@@ -261,6 +265,12 @@ class CONTENT_EXPORT RenderProcessHostImpl
return notification_message_filter_.get();
}
+#if defined(OS_ANDROID)
+ SynchronousCompositorObserver* synchronous_compositor_filter() const {
+ return synchronous_compositor_filter_.get();
+ }
+#endif
+
void set_is_for_guests_only_for_testing(bool is_for_guests_only) {
is_for_guests_only_ = is_for_guests_only;
}
@@ -455,6 +465,10 @@ class CONTENT_EXPORT RenderProcessHostImpl
// closure per notification that must be freed when the notification closes.
scoped_refptr<NotificationMessageFilter> notification_message_filter_;
+#if defined(OS_ANDROID)
+ scoped_refptr<SynchronousCompositorObserver> synchronous_compositor_filter_;
+#endif
+
// Used in single-process mode.
std::unique_ptr<base::Thread> in_process_renderer_;

Powered by Google App Engine
This is Rietveld 408576698