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

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

Issue 2293573002: Add tinted static UI resource cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix text color when cache is full Created 4 years, 3 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/layer_title_cache.cc
diff --git a/chrome/browser/android/compositor/layer_title_cache.cc b/chrome/browser/android/compositor/layer_title_cache.cc
index 1cd7755e9f3747a70dac2bced95bc7551e10259b..62e209259fedafc7639e112c7ca5cab892af2874 100644
--- a/chrome/browser/android/compositor/layer_title_cache.cc
+++ b/chrome/browser/android/compositor/layer_title_cache.cc
@@ -77,6 +77,12 @@ void LayerTitleCache::UpdateLayer(JNIEnv* env,
}
}
+void LayerTitleCache::UpdateTitleForTab(int tab_id, int theme_color) {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ Java_LayerTitleCache_buildUpdatedTitle(env, weak_java_title_cache_.get(env),
+ tab_id, theme_color);
+}
+
void LayerTitleCache::UpdateFavicon(JNIEnv* env,
const JavaParamRef<jobject>& obj,
jint tab_id,

Powered by Google App Engine
This is Rietveld 408576698