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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 1113573002: Maintain minimal error response. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build issue. Created 5 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/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

Powered by Google App Engine
This is Rietveld 408576698