Index: content/renderer/render_widget_fullscreen_pepper.cc |
diff --git a/content/renderer/render_widget_fullscreen_pepper.cc b/content/renderer/render_widget_fullscreen_pepper.cc |
index c1cba49147252be613660999230350eff3597404..3154bbbda7b6c14e0c3b2621ca6c5c04daa8be93 100644 |
--- a/content/renderer/render_widget_fullscreen_pepper.cc |
+++ b/content/renderer/render_widget_fullscreen_pepper.cc |
@@ -519,15 +519,18 @@ RenderWidgetFullscreenPepper::GetBitmapForOptimizedPluginPaint( |
} |
void RenderWidgetFullscreenPepper::OnResize(const gfx::Size& size, |
- const gfx::Rect& resizer_rect, |
- bool is_fullscreen) { |
+ const gfx::Size& physical_backing_size, |
+ const gfx::Rect& resizer_rect, |
+ bool is_fullscreen) { |
if (context_) { |
- gfx::Size pixel_size = gfx::ToFlooredSize( |
- gfx::ScaleSize(size, deviceScaleFactor())); |
- context_->reshape(pixel_size.width(), pixel_size.height()); |
- context_->viewport(0, 0, pixel_size.width(), pixel_size.height()); |
- } |
- RenderWidget::OnResize(size, resizer_rect, is_fullscreen); |
+ context_->reshape(physical_backing_size.width(), |
+ physical_backing_size.height()); |
+ context_->viewport(0, 0, |
+ physical_backing_size.width(), |
+ physical_backing_size.height()); |
+ } |
+ RenderWidget::OnResize(size, physical_backing_size, resizer_rect, |
+ is_fullscreen); |
} |
WebWidget* RenderWidgetFullscreenPepper::CreateWebWidget() { |