From c54f7f2a8d5e04b1d3c168f3d21954a1396bbf2f Mon Sep 17 00:00:00 2001 From: Heilig Benedek Date: Wed, 12 Apr 2017 19:34:52 +0200 Subject: [PATCH] use bounds instead of bounds_in_pixel --- atom/browser/osr/osr_render_widget_host_view.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/osr/osr_render_widget_host_view.cc b/atom/browser/osr/osr_render_widget_host_view.cc index 5827a04c31b9..a5de6cfd103d 100644 --- a/atom/browser/osr/osr_render_widget_host_view.cc +++ b/atom/browser/osr/osr_render_widget_host_view.cc @@ -1117,9 +1117,9 @@ void OffScreenRenderWidgetHostView::Invalidate() { void OffScreenRenderWidgetHostView::InvalidateBounds(const gfx::Rect& bounds) { if (software_output_device_) { - software_output_device_->OnPaint(bounds_in_pixels); + software_output_device_->OnPaint(bounds); } else if (copy_frame_generator_) { - copy_frame_generator_->GenerateCopyFrame(bounds_in_pixels); + copy_frame_generator_->GenerateCopyFrame(bounds); } }