| Index: content/browser/renderer_host/render_widget_host_view_aura.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| index 24e30fd09cbc6a20b0b8e650c75892cd9c64c535..01e3ad972be45efdc96bd552c214ff4317f5bd1f 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| @@ -1855,7 +1855,8 @@ void RenderWidgetHostViewAura::CopyFromCompositingSurfaceHasResult(
|
| }
|
|
|
| DCHECK(result->HasBitmap());
|
| - PrepareBitmapCopyOutputResult(dst_size_in_pixel, callback, result.Pass());
|
| + PrepareBitmapCopyOutputResult(dst_size_in_pixel, config, callback,
|
| + result.Pass());
|
| }
|
|
|
| static void CopyFromCompositingSurfaceFinished(
|
| @@ -1883,7 +1884,7 @@ void RenderWidgetHostViewAura::PrepareTextureCopyOutputResult(
|
| return;
|
|
|
| scoped_ptr<SkBitmap> bitmap(new SkBitmap);
|
| - bitmap->setConfig(SkBitmap::kARGB_8888_Config,
|
| + bitmap->setConfig(config,
|
| dst_size_in_pixel.width(), dst_size_in_pixel.height(),
|
| 0, kOpaque_SkAlphaType);
|
| if (!bitmap->allocPixels())
|
| @@ -1925,10 +1926,15 @@ void RenderWidgetHostViewAura::PrepareTextureCopyOutputResult(
|
| // static
|
| void RenderWidgetHostViewAura::PrepareBitmapCopyOutputResult(
|
| const gfx::Size& dst_size_in_pixel,
|
| + const SkBitmap::Config config,
|
| const base::Callback<void(bool, const SkBitmap&)>& callback,
|
| scoped_ptr<cc::CopyOutputResult> result) {
|
| + if (config != SkBitmap::kARGB_8888_Config) {
|
| + NOTIMPLEMENTED();
|
| + callback.Run(false, SkBitmap());
|
| + return;
|
| + }
|
| DCHECK(result->HasBitmap());
|
| -
|
| base::ScopedClosureRunner scoped_callback_runner(
|
| base::Bind(callback, false, SkBitmap()));
|
| if (!result->HasBitmap())
|
|
|