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

Unified Diff: ui/display/types/display_snapshot_mojo.cc

Issue 2930163002: Convert ozone/drm DisplaySnapshot_Param to DisplaySnapshotMojo (Closed)
Patch Set: review nits Created 3 years, 6 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 | « ui/display/types/display_snapshot_mojo.h ('k') | ui/ozone/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/types/display_snapshot_mojo.cc
diff --git a/ui/display/types/display_snapshot_mojo.cc b/ui/display/types/display_snapshot_mojo.cc
index d3f4b36f9bb8704125a4310b1d8497e966edd225..09482de3c97a7027a63925527de477c0d27dcdba 100644
--- a/ui/display/types/display_snapshot_mojo.cc
+++ b/ui/display/types/display_snapshot_mojo.cc
@@ -66,11 +66,39 @@ DisplaySnapshotMojo::DisplaySnapshotMojo(int64_t display_id,
maximum_cursor_size_ = maximum_cursor_size;
}
+DisplaySnapshotMojo::DisplaySnapshotMojo(int64_t display_id,
+ const gfx::Point& origin,
+ const gfx::Size& physical_size,
+ DisplayConnectionType type,
+ bool is_aspect_preserving_scaling,
+ bool has_overscan,
+ bool has_color_correction_matrix,
+ std::string display_name,
+ const base::FilePath& sys_path,
+ DisplayModeList modes,
+ const std::vector<uint8_t>& edid,
+ const DisplayMode* current_mode,
+ const DisplayMode* native_mode,
+ std::string string_representation)
+ : DisplaySnapshot(display_id,
+ origin,
+ physical_size,
+ type,
+ is_aspect_preserving_scaling,
+ has_overscan,
+ has_color_correction_matrix,
+ display_name,
+ sys_path,
+ std::move(modes),
+ edid,
+ current_mode,
+ native_mode),
+ string_representation_(string_representation) {}
+
DisplaySnapshotMojo::~DisplaySnapshotMojo() = default;
-// TODO(thanhph): Implement ToString() for debugging purposes.
std::string DisplaySnapshotMojo::ToString() const {
- return "";
+ return string_representation_;
}
} // namespace display
« no previous file with comments | « ui/display/types/display_snapshot_mojo.h ('k') | ui/ozone/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698