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

Unified Diff: ui/display/chromeos/x11/native_display_delegate_x11.cc

Issue 208943002: Refactors getting available color profiles code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ui/display/chromeos/x11/native_display_delegate_x11.cc
diff --git a/ui/display/chromeos/x11/native_display_delegate_x11.cc b/ui/display/chromeos/x11/native_display_delegate_x11.cc
index 2135ad9c7b02bd5616660ccee4dd9fa4189b55dc..5c50cb04ccb3d58e82ee57d2c5f4685fe0f4cb9c 100644
--- a/ui/display/chromeos/x11/native_display_delegate_x11.cc
+++ b/ui/display/chromeos/x11/native_display_delegate_x11.cc
@@ -384,9 +384,6 @@ DisplaySnapshotX11* NativeDisplayDelegateX11::InitDisplaySnapshot(
const DisplayMode* native_mode = NULL;
std::vector<const DisplayMode*> display_modes;
- // TODO(mukai|marcheu): check the system status and fill the correct list of
- // available color profiles.
-
for (int i = 0; i < info->nmode; ++i) {
const RRMode mode = info->modes[i];
if (modes_.find(mode) != modes_.end()) {
@@ -607,6 +604,14 @@ bool NativeDisplayDelegateX11::IsOutputAspectPreservingScaling(RROutput id) {
return ret;
}
+
+void NativeDisplayDelegateX11::GetAvailableColorCalibrationProfiles(
+ const DisplaySnapshot& output,
+ std::vector<ColorCalibrationProfile>* profiles) {
+ // TODO(mukai|marcheu): Checks the system data and fills the result.
+ // Note that the order would be Dynamic -> Standard -> Movie -> Reading.
+}
+
bool NativeDisplayDelegateX11::SetColorCalibrationProfile(
const DisplaySnapshot& output,
ColorCalibrationProfile new_profile) {

Powered by Google App Engine
This is Rietveld 408576698