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

Unified Diff: services/ui/ws/platform_display_init_params.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_init_params.h
diff --git a/services/ui/ws/platform_display_init_params.h b/services/ui/ws/platform_display_init_params.h
index 99bda3f51db0584bacc779e24ffe344c7935ccea..0fcc40267bd6fd76f588ea126dba3ddb5e0edc40 100644
--- a/services/ui/ws/platform_display_init_params.h
+++ b/services/ui/ws/platform_display_init_params.h
@@ -8,28 +8,21 @@
#include <stdint.h>
#include "base/memory/ref_counted.h"
-#include "ui/gfx/geometry/rect.h"
-
-namespace shell {
-class Connector;
-}
+#include "services/ui/ws/viewport_metrics.h"
namespace ui {
-class GpuState;
rjkroege 2016/09/21 13:23:47 good cleanup.
class SurfacesState;
namespace ws {
struct PlatformDisplayInitParams {
PlatformDisplayInitParams();
- PlatformDisplayInitParams(const PlatformDisplayInitParams& other);
~PlatformDisplayInitParams();
scoped_refptr<SurfacesState> surfaces_state;
-
- gfx::Rect display_bounds;
- int64_t display_id;
+ int64_t display_id = 1;
+ ViewportMetrics metrics;
};
} // namespace ws

Powered by Google App Engine
This is Rietveld 408576698