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

Unified Diff: content/renderer/render_widget_fullscreen_pepper.cc

Issue 12328080: Plumb physical backing size from RWHV to renderer CC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust for call renamed to GetViewportSizePix() Created 7 years, 10 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
« no previous file with comments | « content/renderer/render_widget_fullscreen_pepper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « content/renderer/render_widget_fullscreen_pepper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698