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

Unified Diff: components/native_viewport/platform_viewport_headless.cc

Issue 1136743003: Plumbs through screen size and scale factor to html_viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: components/native_viewport/platform_viewport_headless.cc
diff --git a/components/native_viewport/platform_viewport_headless.cc b/components/native_viewport/platform_viewport_headless.cc
index e07eb64638801aeb6a2e34d6a7b1a0bca4227fde..f9dd4a0def5c72cf55c64308a4947c8f6ba23ffd 100644
--- a/components/native_viewport/platform_viewport_headless.cc
+++ b/components/native_viewport/platform_viewport_headless.cc
@@ -17,6 +17,7 @@ PlatformViewportHeadless::~PlatformViewportHeadless() {
void PlatformViewportHeadless::Init(const gfx::Rect& bounds) {
metrics_ = mojo::ViewportMetrics::New();
+ metrics_->device_pixel_ratio = 1.f;
metrics_->size = mojo::Size::From(bounds.size());
}
« no previous file with comments | « components/native_viewport/platform_viewport_android.cc ('k') | components/native_viewport/platform_viewport_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698