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

Unified Diff: ash/display/screen_ash.cc

Issue 263643004: Teach gfx::Screen about color profiles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mojo movers [sky]. Created 6 years, 7 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: ash/display/screen_ash.cc
diff --git a/ash/display/screen_ash.cc b/ash/display/screen_ash.cc
index 9d42e49e26724dc8ee03b2daa08fc3eb282b9539..0deabd020c31299f0ca35e6862bf51f5077b8a06 100644
--- a/ash/display/screen_ash.cc
+++ b/ash/display/screen_ash.cc
@@ -94,6 +94,10 @@ class ScreenForShutdown : public gfx::Screen {
const OVERRIDE {
return primary_display_;
}
+ virtual bool GetDisplayColorProfile(gfx::NativeView view,
+ std::vector<char>* color_profile) const OVERRIDE {
+ return false;
+ }
virtual gfx::Display GetDisplayNearestPoint(
const gfx::Point& point) const OVERRIDE {
return FindDisplayNearestPoint(display_list_, point);
@@ -248,6 +252,12 @@ gfx::Display ScreenAsh::GetDisplayNearestWindow(gfx::NativeView window) const {
return display_manager->GetDisplayForId(id);
}
+bool ScreenAsh::GetDisplayColorProfile(
+ gfx::NativeView view, std::vector<char>* color_profile) const {
+ // TODO(port): consider display color profile support.
+ return false;
+}
+
gfx::Display ScreenAsh::GetDisplayNearestPoint(const gfx::Point& point) const {
const gfx::Display& display =
GetDisplayManager()->FindDisplayContainingPoint(point);

Powered by Google App Engine
This is Rietveld 408576698