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

Unified Diff: ui/ozone/common/gpu/ozone_gpu_message_params.h

Issue 378673002: [Ozone] Adding display related IPC messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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: ui/ozone/common/gpu/ozone_gpu_message_params.h
diff --git a/ui/ozone/common/gpu/ozone_gpu_message_params.h b/ui/ozone/common/gpu/ozone_gpu_message_params.h
new file mode 100644
index 0000000000000000000000000000000000000000..fcce42fe7a5add827736c5d738c1a6ddebbde658
--- /dev/null
+++ b/ui/ozone/common/gpu/ozone_gpu_message_params.h
@@ -0,0 +1,49 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_
+#define UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_
+
+#include <string>
+#include <vector>
+
+#include "ui/display/types/display_constants.h"
+#include "ui/gfx/geometry/point.h"
+#include "ui/gfx/geometry/size.h"
+
+namespace ui {
+
+struct DisplayMode_Params {
+ DisplayMode_Params();
+ ~DisplayMode_Params();
+
+ gfx::Size size;
+ bool is_interlaced;
+ float refresh_rate;
+};
+
+struct DisplaySnapshot_Params {
+ DisplaySnapshot_Params();
+ ~DisplaySnapshot_Params();
+
+ int64_t display_id;
+ bool has_proper_display_id;
+ gfx::Point origin;
+ gfx::Size physical_size;
+ DisplayConnectionType type;
+ bool is_aspect_preserving_scaling;
+ bool has_overscan;
+ std::string display_name;
+ std::vector<DisplayMode_Params> modes;
+ bool has_current_mode;
+ DisplayMode_Params current_mode;
+ bool has_native_mode;
+ DisplayMode_Params native_mode;
+ std::string string_representation;
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_
+

Powered by Google App Engine
This is Rietveld 408576698