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

Side by Side Diff: ui/display/chromeos/x11/display_snapshot_x11.cc

Issue 1182063002: Add support for more advanced color correction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@qcms-fixed-point-gamma
Patch Set: Refactor for glevin@ and load VCGT always Created 5 years, 1 month 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/display/chromeos/x11/display_snapshot_x11.h" 5 #include "ui/display/chromeos/x11/display_snapshot_x11.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "ui/display/chromeos/x11/display_mode_x11.h" 8 #include "ui/display/chromeos/x11/display_mode_x11.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 11 matching lines...) Expand all
22 const DisplayMode* native_mode, 22 const DisplayMode* native_mode,
23 RROutput output, 23 RROutput output,
24 RRCrtc crtc, 24 RRCrtc crtc,
25 int index) 25 int index)
26 : DisplaySnapshot(display_id, 26 : DisplaySnapshot(display_id,
27 origin, 27 origin,
28 physical_size, 28 physical_size,
29 type, 29 type,
30 is_aspect_preserving_scaling, 30 is_aspect_preserving_scaling,
31 has_overscan, 31 has_overscan,
32 false,
32 display_name, 33 display_name,
33 modes, 34 modes,
34 current_mode, 35 current_mode,
35 native_mode), 36 native_mode),
36 output_(output), 37 output_(output),
37 crtc_(crtc), 38 crtc_(crtc),
38 index_(index) {} 39 index_(index) {}
39 40
40 DisplaySnapshotX11::~DisplaySnapshotX11() {} 41 DisplaySnapshotX11::~DisplaySnapshotX11() {}
41 42
42 std::string DisplaySnapshotX11::ToString() const { 43 std::string DisplaySnapshotX11::ToString() const {
43 return base::StringPrintf( 44 return base::StringPrintf(
44 "[type=%d, output=%ld, crtc=%ld, mode=%ld, dim=%dx%d]", 45 "[type=%d, output=%ld, crtc=%ld, mode=%ld, dim=%dx%d]",
45 type_, 46 type_,
46 output_, 47 output_,
47 crtc_, 48 crtc_,
48 current_mode_ 49 current_mode_
49 ? static_cast<const DisplayModeX11*>(current_mode_)->mode_id() 50 ? static_cast<const DisplayModeX11*>(current_mode_)->mode_id()
50 : 0, 51 : 0,
51 physical_size_.width(), 52 physical_size_.width(),
52 physical_size_.height()); 53 physical_size_.height());
53 } 54 }
54 55
55 } // namespace ui 56 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698