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

Side by Side Diff: ash/display/display_color_manager_chromeos.h

Issue 1528963002: Quirks Client for downloading and providing display profiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small cleanup Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef ASH_DISPLAY_DISPLAY_COLOR_MANAGER_CHROMEOS_H_ 5 #ifndef ASH_DISPLAY_DISPLAY_COLOR_MANAGER_CHROMEOS_H_
6 #define ASH_DISPLAY_DISPLAY_COLOR_MANAGER_CHROMEOS_H_ 6 #define ASH_DISPLAY_DISPLAY_COLOR_MANAGER_CHROMEOS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const ui::DisplayConfigurator::DisplayStateList& displays, 45 const ui::DisplayConfigurator::DisplayStateList& displays,
46 ui::MultipleDisplayState failed_new_state) override {} 46 ui::MultipleDisplayState failed_new_state) override {}
47 47
48 struct ColorCalibrationData { 48 struct ColorCalibrationData {
49 ColorCalibrationData(); 49 ColorCalibrationData();
50 ~ColorCalibrationData(); 50 ~ColorCalibrationData();
51 51
52 std::vector<ui::GammaRampRGBEntry> lut; 52 std::vector<ui::GammaRampRGBEntry> lut;
53 }; 53 };
54 54
55 protected:
56 virtual void FinishLoadCalibrationForDisplay(int64_t display_id,
57 int64_t product_id,
58 const base::FilePath& path,
59 bool file_downloaded);
60 virtual void UpdateCalibrationData(int64_t display_id,
61 int64_t product_id,
62 scoped_ptr<ColorCalibrationData> data);
63
55 private: 64 private:
56 void ApplyDisplayColorCalibration(int64_t display_id, int64_t product_id); 65 void ApplyDisplayColorCalibration(int64_t display_id, int64_t product_id);
57 void LoadCalibrationForDisplay(const ui::DisplaySnapshot* display); 66 void LoadCalibrationForDisplay(const ui::DisplaySnapshot* display);
58 void UpdateCalibrationData(
59 int64_t display_id,
60 int64_t product_id,
61 scoped_ptr<DisplayColorManager::ColorCalibrationData> data,
62 bool success);
63 67
64 ui::DisplayConfigurator* configurator_; 68 ui::DisplayConfigurator* configurator_;
65 std::map<int64_t, ColorCalibrationData*> calibration_map_; 69 std::map<int64_t, ColorCalibrationData*> calibration_map_;
66 base::SequencedWorkerPool* blocking_pool_; 70 base::SequencedWorkerPool* blocking_pool_;
67 71
68 DISALLOW_COPY_AND_ASSIGN(DisplayColorManager); 72 DISALLOW_COPY_AND_ASSIGN(DisplayColorManager);
69 }; 73 };
70 74
71 } // namespace ash 75 } // namespace ash
72 76
73 #endif // ASH_DISPLAY_DISPLAY_COLOR_MANAGER_CHROMEOS_H_ 77 #endif // ASH_DISPLAY_DISPLAY_COLOR_MANAGER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698