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

Unified Diff: content/browser/android/content_readback_handler.cc

Issue 262543002: android: add ThumbnailCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@codec
Patch Set: renamed ThumbnailCacheCore to ThumbnailCache Created 6 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/android/content_readback_handler.cc
diff --git a/content/browser/android/content_readback_handler.cc b/content/browser/android/content_readback_handler.cc
index 432b23099ead6aaf2bf47bafe0c3745e1016469a..69f363152061c599e002181e4880aede5edbe043 100644
--- a/content/browser/android/content_readback_handler.cc
+++ b/content/browser/android/content_readback_handler.cc
@@ -61,9 +61,9 @@ void ContentReadbackHandler::GetContentBitmap(JNIEnv* env,
weak_factory_.GetWeakPtr(),
readback_id);
+ SkBitmap::Config skbitmap_format = gfx::ConvertToSkiaConfig(config);
view->GetScaledContentBitmap(
- scale, config, gfx::Rect(x, y, width, height), result_callback);
- return;
+ scale, skbitmap_format, gfx::Rect(x, y, width, height), result_callback);
}
// static

Powered by Google App Engine
This is Rietveld 408576698