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

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

Issue 1157793004: ozone: Add overlay candidate implementation that queries support via IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing license header Created 5 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/overlay_transform.h ('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
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/ozone/ozone_export.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"
15 18
16 namespace ui { 19 namespace ui {
17 20
18 struct OZONE_EXPORT DisplayMode_Params { 21 struct OZONE_EXPORT DisplayMode_Params {
19 DisplayMode_Params(); 22 DisplayMode_Params();
20 ~DisplayMode_Params(); 23 ~DisplayMode_Params();
21 24
22 gfx::Size size; 25 gfx::Size size;
23 bool is_interlaced; 26 bool is_interlaced;
24 float refresh_rate; 27 float refresh_rate;
(...skipping 12 matching lines...) Expand all
37 std::string display_name; 40 std::string display_name;
38 std::vector<DisplayMode_Params> modes; 41 std::vector<DisplayMode_Params> modes;
39 bool has_current_mode; 42 bool has_current_mode;
40 DisplayMode_Params current_mode; 43 DisplayMode_Params current_mode;
41 bool has_native_mode; 44 bool has_native_mode;
42 DisplayMode_Params native_mode; 45 DisplayMode_Params native_mode;
43 int64_t product_id; 46 int64_t product_id;
44 std::string string_representation; 47 std::string string_representation;
45 }; 48 };
46 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;
58 SurfaceFactoryOzone::BufferFormat format;
59 gfx::Rect display_rect;
60 int plane_z_order;
61 };
62
47 } // namespace ui 63 } // namespace ui
48 64
49 #endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ 65 #endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_
50 66
OLDNEW
« no previous file with comments | « ui/gfx/overlay_transform.h ('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