OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ | 5 #ifndef UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ |
6 #define UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ | 6 #define UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ui/display/types/display_constants.h" | 11 #include "ui/display/types/display_constants.h" |
12 #include "ui/gfx/geometry/point.h" | 12 #include "ui/gfx/geometry/point.h" |
13 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
14 #include "ui/gfx/overlay_transform.h" | 14 #include "ui/gfx/overlay_transform.h" |
15 #include "ui/ozone/ozone_export.h" | 15 #include "ui/ozone/ozone_export.h" |
16 #include "ui/ozone/public/overlay_candidates_ozone.h" | 16 #include "ui/ozone/public/overlay_candidates_ozone.h" |
17 #include "ui/ozone/public/surface_factory_ozone.h" | 17 #include "ui/ozone/public/surface_factory_ozone.h" |
dshwang
2015/08/03 12:21:35
replace this header with buffer_types.h
spang
2015/08/04 15:36:51
Done.
| |
18 | 18 |
19 namespace ui { | 19 namespace ui { |
20 | 20 |
21 struct OZONE_EXPORT DisplayMode_Params { | 21 struct OZONE_EXPORT DisplayMode_Params { |
22 DisplayMode_Params(); | 22 DisplayMode_Params(); |
23 ~DisplayMode_Params(); | 23 ~DisplayMode_Params(); |
24 | 24 |
25 gfx::Size size; | 25 gfx::Size size; |
26 bool is_interlaced = false; | 26 bool is_interlaced = false; |
27 float refresh_rate = 0.0f; | 27 float refresh_rate = 0.0f; |
(...skipping 20 matching lines...) Expand all Loading... | |
48 }; | 48 }; |
49 | 49 |
50 struct OZONE_EXPORT OverlayCheck_Params { | 50 struct OZONE_EXPORT OverlayCheck_Params { |
51 OverlayCheck_Params(); | 51 OverlayCheck_Params(); |
52 OverlayCheck_Params( | 52 OverlayCheck_Params( |
53 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate); | 53 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate); |
54 ~OverlayCheck_Params(); | 54 ~OverlayCheck_Params(); |
55 | 55 |
56 gfx::Size buffer_size; | 56 gfx::Size buffer_size; |
57 gfx::OverlayTransform transform = gfx::OVERLAY_TRANSFORM_INVALID; | 57 gfx::OverlayTransform transform = gfx::OVERLAY_TRANSFORM_INVALID; |
58 SurfaceFactoryOzone::BufferFormat format = SurfaceFactoryOzone::UNKNOWN; | 58 gfx::BufferFormat format = gfx::BufferFormat::BGRA_8888; |
59 gfx::Rect display_rect; | 59 gfx::Rect display_rect; |
60 int plane_z_order = 0; | 60 int plane_z_order = 0; |
61 }; | 61 }; |
62 | 62 |
63 } // namespace ui | 63 } // namespace ui |
64 | 64 |
65 #endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ | 65 #endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ |
66 | 66 |
OLD | NEW |