Index: content/browser/renderer_host/render_widget_host_impl.cc |
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc |
index 65c4971f8e8c82109752edd1fc2f2670b2c1c1c3..e3cb7e9da8fb6c344a488cd571904f51aec2a64f 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.cc |
+++ b/content/browser/renderer_host/render_widget_host_impl.cc |
@@ -716,14 +716,15 @@ void RenderWidgetHostImpl::CopyFromBackingStore( |
const gfx::Rect& src_subrect, |
const gfx::Size& accelerated_dst_size, |
ReadbackRequestCallback& callback, |
- const SkColorType color_type) { |
+ const SkColorType preferred_color_type) { |
if (view_) { |
TRACE_EVENT0("browser", |
"RenderWidgetHostImpl::CopyFromBackingStore::FromCompositingSurface"); |
gfx::Rect accelerated_copy_rect = src_subrect.IsEmpty() ? |
gfx::Rect(view_->GetViewBounds().size()) : src_subrect; |
- view_->CopyFromCompositingSurface( |
- accelerated_copy_rect, accelerated_dst_size, callback, color_type); |
+ view_->CopyFromCompositingSurface(accelerated_copy_rect, |
+ accelerated_dst_size, callback, |
+ preferred_color_type); |
return; |
} |
@@ -2121,10 +2122,4 @@ gfx::NativeViewAccessible |
} |
#endif |
-SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { |
- if (view_) |
- return view_->PreferredReadbackFormat(); |
- return kN32_SkColorType; |
-} |
- |
} // namespace content |