DescriptionRefactors 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 #Messages
Total messages: 7 (0 generated)
|