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

Unified Diff: content/public/browser/android/compositor.h

Issue 843883002: [Android] Fix a flicker in stopping Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/public/browser/android/compositor.h
diff --git a/content/public/browser/android/compositor.h b/content/public/browser/android/compositor.h
index 3cff0ea9ade03e4f8172e541c31c7039706a32ea..b72e9a0b2cb1d176cf9c969beaf7de4202af9e6c 100644
--- a/content/public/browser/android/compositor.h
+++ b/content/public/browser/android/compositor.h
@@ -75,6 +75,14 @@ class CONTENT_EXPORT Compositor {
// Returns the resource manager associated with the compositor.
virtual ui::ResourceManager& GetResourceManager() = 0;
+ // Pause the compositor, for the cases, e.g., when you want to make sure that
+ // tab is visible even when you are releasing resources in stopping the
+ // activity.
+ virtual void Pause() = 0;
+
+ // Resume the compositor.
+ virtual void Resume() = 0;
+
protected:
Compositor() {}
};

Powered by Google App Engine
This is Rietveld 408576698