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

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: added DEPS file Created 6 years, 5 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/browser/android/content_view_core_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 601e3a317283eb1332a1e9fcb77c0f6dd2d157ab..ba1ba9ffc6b10525b3642e052f8d1d154a05b95b 100644
--- a/content/browser/android/content_readback_handler.cc
+++ b/content/browser/android/content_readback_handler.cc
@@ -69,8 +69,9 @@ void ContentReadbackHandler::GetContentBitmap(JNIEnv* env,
weak_factory_.GetWeakPtr(),
readback_id);
+ SkColorType sk_color_type = gfx::ConvertToSkiaColorType(color_type);
view->GetScaledContentBitmap(
- scale, color_type, gfx::Rect(x, y, width, height), result_callback);
+ scale, sk_color_type, gfx::Rect(x, y, width, height), result_callback);
}
void ContentReadbackHandler::GetCompositorBitmap(JNIEnv* env,
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/browser/android/content_view_core_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698