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

Unified Diff: services/ui/ws/platform_display.h

Issue 2356913002: Pass device scale factor from display to ws. (Closed)
Patch Set: Created 4 years, 3 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: services/ui/ws/platform_display.h
diff --git a/services/ui/ws/platform_display.h b/services/ui/ws/platform_display.h
index e68048ac0ffeef125c3aacb13f5ea562a76c8a96..633d9c6f09f1f8449ef3699cedf74fcbd63f1241 100644
--- a/services/ui/ws/platform_display.h
+++ b/services/ui/ws/platform_display.h
@@ -143,7 +143,9 @@ class DefaultPlatformDisplay : public PlatformDisplay,
scoped_refptr<gpu::GpuChannelHost> gpu_channel) override;
private:
- void UpdateMetrics(const gfx::Rect& bounds, float device_scale_factor);
+ void UpdateMetrics(const gfx::Rect& bounds,
+ const gfx::Size& pixel_size,
+ float device_scale_factor);
// Update the root_location of located events to be relative to the origin
// of this display. For example, if the origin of this display is (1800, 0)

Powered by Google App Engine
This is Rietveld 408576698