base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON().
[chromium-blink-merge.git] / ui / ozone / common / display_util.h
blobda45b539a7f28a7594e5ca6283251ca680b4ec6b
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.
5 #ifndef UI_OZONE_COMMON_DISPLAY_UTIL_H_
6 #define UI_OZONE_COMMON_DISPLAY_UTIL_H_
8 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
10 namespace ui {
12 class DisplayMode;
13 class DisplaySnapshot;
15 // Conforms to the std::UnaryPredicate interface such that it can be used to
16 // find a display with |display_id| in std:: containers (ie: std::vector).
17 class FindDisplayById {
18 public:
19 FindDisplayById(int64_t display_id);
21 bool operator()(const DisplaySnapshot_Params& display) const;
23 private:
24 int64_t display_id_;
27 DisplayMode_Params GetDisplayModeParams(const DisplayMode& mode);
28 DisplaySnapshot_Params GetDisplaySnapshotParams(const DisplaySnapshot& display);
30 // Create a display using the Ozone command line parameters.
31 DisplaySnapshot_Params CreateSnapshotFromCommandLine();
33 } // namespace ui
35 #endif // UI_OZONE_COMMON_DISPLAY_UTIL_H_