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

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

Issue 1001573003: [Android] Stop hiding the RWHV layer subtree when hiding the widget (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test Created 5 years, 7 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_widget_host_view_android.h
diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h
index e6d85b93313220ae0686eecfbdc6c2a6aefbc7ea..fe1ea3eb21998c5f36e7387799230a53e5c6f848 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.h
+++ b/content/browser/renderer_host/render_widget_host_view_android.h
@@ -175,11 +175,14 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
// ui::WindowAndroidObserver implementation.
void OnCompositingDidCommit() override;
+ void OnRootWindowVisibilityChanged(bool visible) override;
void OnAttachCompositor() override;
void OnDetachCompositor() override;
void OnVSync(base::TimeTicks frame_time,
base::TimeDelta vsync_period) override;
void OnAnimate(base::TimeTicks begin_frame_time) override;
+ void OnActivityPaused() override;
+ void OnActivityResumed() override;
// DelegatedFrameEvictor implementation
void EvictDelegatedFrame() override;
@@ -269,6 +272,8 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
const cc::CompositorFrameMetadata& frame_metadata);
void ComputeContentsSize(const cc::CompositorFrameMetadata& frame_metadata);
+ void ShowInternal();
+ void HideInternal(bool hide_frontbuffer, bool stop_observing_root_window);
void AttachLayers();
void RemoveLayers();

Powered by Google App Engine
This is Rietveld 408576698