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

Side by Side Diff: ui/ozone/common/display_util.h

Issue 1131813003: [2/2][Ozone-Drm] Scan for displays on browser size during startup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@handle-display-init3
Patch Set: rebased Created 5 years, 7 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/BUILD.gn ('k') | ui/ozone/common/display_util.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_DISPLAY_UTIL_H_ 5 #ifndef UI_OZONE_COMMON_DISPLAY_UTIL_H_
6 #define UI_OZONE_COMMON_DISPLAY_UTIL_H_ 6 #define UI_OZONE_COMMON_DISPLAY_UTIL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" 10 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
(...skipping 19 matching lines...) Expand all
30 int64_t display_id_; 30 int64_t display_id_;
31 }; 31 };
32 32
33 DisplayMode_Params GetDisplayModeParams(const DisplayMode& mode); 33 DisplayMode_Params GetDisplayModeParams(const DisplayMode& mode);
34 DisplaySnapshot_Params GetDisplaySnapshotParams(const DisplaySnapshot& display); 34 DisplaySnapshot_Params GetDisplaySnapshotParams(const DisplaySnapshot& display);
35 35
36 // Create a display using the Ozone command line parameters. 36 // Create a display using the Ozone command line parameters.
37 // Return false if the command line flags are not specified. 37 // Return false if the command line flags are not specified.
38 bool CreateSnapshotFromCommandLine(DisplaySnapshot_Params* snapshot_out); 38 bool CreateSnapshotFromCommandLine(DisplaySnapshot_Params* snapshot_out);
39 39
40 // Create a display snapshot from |file| that contains EDID.
41 // Return false if the file doesn't exist, or it doesn't contain valid EDID.
42 bool CreateSnapshotFromEDIDFile(const base::FilePath& file,
43 DisplaySnapshot_Params* snapshot_out);
44
45 // Create a display snaphot from edid.
46 // Return false if it doesn't contain valid EDID.
47 OZONE_EXPORT bool CreateSnapshotFromEDID(bool internal,
48 const std::vector<uint8_t>& edid,
49 DisplaySnapshot_Params* snapshot_out);
50
51 } // namespace ui 40 } // namespace ui
52 41
53 #endif // UI_OZONE_COMMON_DISPLAY_UTIL_H_ 42 #endif // UI_OZONE_COMMON_DISPLAY_UTIL_H_
OLDNEW
« no previous file with comments | « ui/ozone/BUILD.gn ('k') | ui/ozone/common/display_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698