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

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

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.cc
diff --git a/chrome/browser/android/compositor/tab_content_manager.cc b/chrome/browser/android/compositor/tab_content_manager.cc
index 505c84323cf71ca2485b2c288ef1deb54851c536..fe401012796e087e13a7608df8cfa11dfb8f9bd0 100644
--- a/chrome/browser/android/compositor/tab_content_manager.cc
+++ b/chrome/browser/android/compositor/tab_content_manager.cc
@@ -134,7 +134,11 @@ scoped_refptr<cc::Layer> TabContentManager::GetLiveLayer(int tab_id) {
return live_layer_list_[tab_id];
}
-scoped_refptr<ThumbnailLayer> TabContentManager::GetStaticLayer(
+scoped_refptr<ThumbnailLayer> TabContentManager::GetStaticLayer(int tab_id) {
+ return static_layer_cache_[tab_id];
+}
+
+scoped_refptr<ThumbnailLayer> TabContentManager::GetOrCreateStaticLayer(
int tab_id,
bool force_disk_read) {
Thumbnail* thumbnail = thumbnail_cache_->Get(tab_id, force_disk_read, true);

Powered by Google App Engine
This is Rietveld 408576698