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

Unified Diff: ui/gfx/color_space_x11.cc

Issue 2160133002: Revert of Support for retreiving the monitor color space on X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « ui/gfx/color_space.cc ('k') | ui/gfx/gfx.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_space_x11.cc
diff --git a/ui/gfx/color_space_x11.cc b/ui/gfx/color_space_x11.cc
deleted file mode 100644
index 7dacae21512d8b0a32efa84df0b54c88afd857d2..0000000000000000000000000000000000000000
--- a/ui/gfx/color_space_x11.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <stddef.h>
-
-extern "C" {
-#include <X11/Xatom.h>
-#include <X11/Xlib.h>
-}
-
-#include "ui/gfx/color_space.h"
-
-#include "ui/gfx/x/x11_types.h"
-
-namespace gfx {
-
-// static
-ColorSpace ColorSpace::FromBestMonitor() {
- ColorSpace color_space;
- Atom property = XInternAtom(GetXDisplay(), "_ICC_PROFILE", true);
- if (property != None) {
- Atom prop_type = None;
- int prop_format = 0;
- unsigned long nitems = 0;
- unsigned long nbytes = 0;
- char* property_data = NULL;
- if (XGetWindowProperty(
- GetXDisplay(), DefaultRootWindow(GetXDisplay()), property, 0,
- 0x1FFFFFFF /* MAXINT32 / 4 */, False, AnyPropertyType, &prop_type,
- &prop_format, &nitems, &nbytes,
- reinterpret_cast<unsigned char**>(&property_data)) == Success) {
- color_space.icc_profile_.assign(property_data, property_data + nitems);
- XFree(property_data);
- }
- }
- return color_space;
-}
-
-} // namespace gfx
« no previous file with comments | « ui/gfx/color_space.cc ('k') | ui/gfx/gfx.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698