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

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

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
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 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" 5 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
6 6
7 #include "ui/gfx/geometry/rect_conversions.h"
8 #include "ui/gfx/ipc/gfx_param_traits.h"
9
7 namespace ui { 10 namespace ui {
8 11
9 DisplayMode_Params::DisplayMode_Params() 12 DisplayMode_Params::DisplayMode_Params()
10 : size(), is_interlaced(false), refresh_rate(0.0f) {} 13 : size(), is_interlaced(false), refresh_rate(0.0f) {}
11 14
12 DisplayMode_Params::~DisplayMode_Params() {} 15 DisplayMode_Params::~DisplayMode_Params() {}
13 16
14 DisplaySnapshot_Params::DisplaySnapshot_Params() 17 DisplaySnapshot_Params::DisplaySnapshot_Params()
15 : display_id(0), 18 : display_id(0),
16 origin(), 19 origin(),
17 physical_size(), 20 physical_size(),
18 type(ui::DISPLAY_CONNECTION_TYPE_NONE), 21 type(ui::DISPLAY_CONNECTION_TYPE_NONE),
19 is_aspect_preserving_scaling(false), 22 is_aspect_preserving_scaling(false),
20 has_overscan(false), 23 has_overscan(false),
21 display_name(), 24 display_name(),
22 modes(), 25 modes(),
23 has_current_mode(false), 26 has_current_mode(false),
24 current_mode(), 27 current_mode(),
25 has_native_mode(false), 28 has_native_mode(false),
26 native_mode(), 29 native_mode(),
27 product_id(0) { 30 product_id(0) {
28 } 31 }
29 32
30 DisplaySnapshot_Params::~DisplaySnapshot_Params() {} 33 DisplaySnapshot_Params::~DisplaySnapshot_Params() {}
31 34
35 OverlayCheck_Params::OverlayCheck_Params()
36 : transform(gfx::OVERLAY_TRANSFORM_INVALID),
37 format(SurfaceFactoryOzone::UNKNOWN),
38 plane_z_order(0) {
39 }
40
41 OverlayCheck_Params::OverlayCheck_Params(
42 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate)
43 : buffer_size(candidate.buffer_size),
44 transform(candidate.transform),
45 format(candidate.format),
46 display_rect(gfx::ToNearestRect(candidate.display_rect)),
47 plane_z_order(candidate.plane_z_order) {
48 }
49
50 OverlayCheck_Params::~OverlayCheck_Params() {
51 }
52
32 } // namespace ui 53 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/common/gpu/ozone_gpu_message_params.h ('k') | ui/ozone/common/gpu/ozone_gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698