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

Side by Side Diff: ui/ozone/common/gpu/ozone_gpu_message_params.h

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « ui/ozone/common/egl_util.cc ('k') | ui/ozone/common/gpu/ozone_gpu_message_params.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_
6 #define UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "ui/display/types/display_constants.h"
12 #include "ui/gfx/geometry/point.h"
13 #include "ui/gfx/geometry/size.h"
14 #include "ui/gfx/overlay_transform.h"
15 #include "ui/ozone/ozone_export.h"
16 #include "ui/ozone/public/overlay_candidates_ozone.h"
17 #include "ui/ozone/public/surface_factory_ozone.h"
18
19 namespace ui {
20
21 struct OZONE_EXPORT DisplayMode_Params {
22 DisplayMode_Params();
23 ~DisplayMode_Params();
24
25 gfx::Size size;
26 bool is_interlaced = false;
27 float refresh_rate = 0.0f;
28 };
29
30 struct OZONE_EXPORT DisplaySnapshot_Params {
31 DisplaySnapshot_Params();
32 ~DisplaySnapshot_Params();
33
34 int64_t display_id = 0;
35 gfx::Point origin;
36 gfx::Size physical_size;
37 DisplayConnectionType type = DISPLAY_CONNECTION_TYPE_NONE;
38 bool is_aspect_preserving_scaling = false;
39 bool has_overscan = false;
40 std::string display_name;
41 std::vector<DisplayMode_Params> modes;
42 bool has_current_mode = false;
43 DisplayMode_Params current_mode;
44 bool has_native_mode = false;
45 DisplayMode_Params native_mode;
46 int64_t product_id = 0;
47 std::string string_representation;
48 };
49
50 struct OZONE_EXPORT OverlayCheck_Params {
51 OverlayCheck_Params();
52 OverlayCheck_Params(
53 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate);
54 ~OverlayCheck_Params();
55
56 gfx::Size buffer_size;
57 gfx::OverlayTransform transform = gfx::OVERLAY_TRANSFORM_INVALID;
58 SurfaceFactoryOzone::BufferFormat format = SurfaceFactoryOzone::UNKNOWN;
59 gfx::Rect display_rect;
60 int plane_z_order = 0;
61 };
62
63 } // namespace ui
64
65 #endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_
OLDNEW
« no previous file with comments | « ui/ozone/common/egl_util.cc ('k') | ui/ozone/common/gpu/ozone_gpu_message_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698