Index: content/browser/renderer_host/render_widget_host_view_android.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc |
index 16e367f02c2a92117c27160011fc4630ff6d6c8c..8db7f7caa48804b9cc6d76f67f82f3f58d2da5a0 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_android.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc |
@@ -253,6 +253,7 @@ void RenderWidgetHostViewAndroid::SetBounds(const gfx::Rect& rect) { |
void RenderWidgetHostViewAndroid::GetScaledContentBitmap( |
float scale, |
+ SkBitmap::Config bitmap_config, |
const base::Callback<void(bool, const SkBitmap&)>& result_callback) { |
if (!IsSurfaceAvailableForCopy()) { |
result_callback.Run(false, SkBitmap()); |
@@ -268,7 +269,7 @@ void RenderWidgetHostViewAndroid::GetScaledContentBitmap( |
gfx::Size dst_size( |
gfx::ToCeiledSize(gfx::ScaleSize(bounds, scale / device_scale_factor))); |
CopyFromCompositingSurface( |
- src_subrect, dst_size, result_callback, SkBitmap::kARGB_8888_Config); |
+ src_subrect, dst_size, result_callback, bitmap_config); |
} |
bool RenderWidgetHostViewAndroid::PopulateBitmapWithContents(jobject jbitmap) { |