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

Unified Diff: chrome/browser/android/compositor/tab_content_manager.h

Issue 2707403004: Unify background color gutters. (Closed)
Patch Set: Rebase Created 3 years, 10 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: chrome/browser/android/compositor/tab_content_manager.h
diff --git a/chrome/browser/android/compositor/tab_content_manager.h b/chrome/browser/android/compositor/tab_content_manager.h
index 13b3655f58813eafb5eb6ac10c85fb984a08a575..70b5372c66881b60546b787985c803697cf58bf6 100644
--- a/chrome/browser/android/compositor/tab_content_manager.h
+++ b/chrome/browser/android/compositor/tab_content_manager.h
@@ -53,9 +53,11 @@ class TabContentManager : public ThumbnailCacheObserver {
// Get the live layer from the cache.
scoped_refptr<cc::Layer> GetLiveLayer(int tab_id);
+ scoped_refptr<ThumbnailLayer> GetStaticLayer(int tab_id);
+
// Get the static thumbnail from the cache, or the NTP.
- scoped_refptr<ThumbnailLayer> GetStaticLayer(int tab_id,
- bool force_disk_read);
+ scoped_refptr<ThumbnailLayer> GetOrCreateStaticLayer(int tab_id,
+ bool force_disk_read);
// Should be called when a tab gets a new live layer that should be served
// by the cache to the CompositorView.

Powered by Google App Engine
This is Rietveld 408576698