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

Issue 208943002: Refactors getting available color profiles code. (Closed)

Created:
6 years, 9 months ago by Jun Mukai
Modified:
6 years, 9 months ago
Reviewers:
marcheu, oshima
CC:
chromium-reviews, kalyank, stevenjb+watch_chromium.org, sadrul, oshima+watch_chromium.org, ben+ash_chromium.org
Visibility:
Public.

Description

Refactors getting available color profiles code. My first CL got affected the recent refactoring of display/chromeos and it needs some cleanups. I think the new code makes more sense. - DisplayState struct isn't accessible from native_display_delegate but the color profiles are in the native layer. It doesn't make sense to put the list there. - Instead of moving the data into DisplaySnapshot, it seems nicer to query the list of available profiles and to treat the list as a cache. This also avoids duplicating the same list both in DisplayInfo and another struct. - The destructor of DisplayState was introduced by me because it gets a complicated struct due to available_color_profiles. Now it's gone, so it doesn't necessarily exist. BUG=None R=oshima@chromium.org, marcheu@chromium.org TEST=build succeeds Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258798

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -26 lines) Patch
M ash/display/display_change_observer_chromeos.cc View 1 1 chunk +9 lines, -7 lines 0 comments Download
M ash/display/display_info.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ash/display/display_info.cc View 1 chunk +8 lines, -4 lines 0 comments Download
M ash/display/display_manager.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/display/chromeos/native_display_delegate.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M ui/display/chromeos/output_configurator.h View 1 3 chunks +5 lines, -3 lines 0 comments Download
M ui/display/chromeos/output_configurator.cc View 1 2 chunks +14 lines, -9 lines 0 comments Download
M ui/display/chromeos/output_configurator_unittest.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M ui/display/chromeos/x11/native_display_delegate_x11.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/display/chromeos/x11/native_display_delegate_x11.cc View 1 2 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Jun Mukai
6 years, 9 months ago (2014-03-21 20:42:33 UTC) #1
oshima
https://codereview.chromium.org/208943002/diff/1/ash/display/display_change_observer_chromeos.cc File ash/display/display_change_observer_chromeos.cc (right): https://codereview.chromium.org/208943002/diff/1/ash/display/display_change_observer_chromeos.cc#newcode160 ash/display/display_change_observer_chromeos.cc:160: displays.push_back(DisplayInfo(id, name, has_overscan)); The list is getting longer. Can ...
6 years, 9 months ago (2014-03-21 23:37:10 UTC) #2
Jun Mukai
https://codereview.chromium.org/208943002/diff/1/ash/display/display_change_observer_chromeos.cc File ash/display/display_change_observer_chromeos.cc (right): https://codereview.chromium.org/208943002/diff/1/ash/display/display_change_observer_chromeos.cc#newcode160 ash/display/display_change_observer_chromeos.cc:160: displays.push_back(DisplayInfo(id, name, has_overscan)); On 2014/03/21 23:37:10, oshima wrote: > ...
6 years, 9 months ago (2014-03-22 00:20:29 UTC) #3
oshima
lgtm
6 years, 9 months ago (2014-03-22 00:25:25 UTC) #4
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 9 months ago (2014-03-22 00:36:17 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/208943002/10001
6 years, 9 months ago (2014-03-22 00:38:32 UTC) #6
commit-bot: I haz the power
6 years, 9 months ago (2014-03-22 07:01:53 UTC) #7
Message was sent while issue was closed.
Change committed as 258798

Powered by Google App Engine
This is Rietveld 408576698