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

Unified Diff: ui/gfx/color_profile.cc

Issue 2106303002: Color: Rename gfx::ColorProfile to gfx::ColorSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_profile.h ('k') | ui/gfx/color_profile_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_profile.cc
diff --git a/ui/gfx/color_profile.cc b/ui/gfx/color_profile.cc
deleted file mode 100644
index 3f6e60ff85898a053d9ec83cdeb53c6878eb6a03..0000000000000000000000000000000000000000
--- a/ui/gfx/color_profile.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2012 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 "build/build_config.h"
-#include "ui/gfx/color_profile.h"
-
-namespace gfx {
-
-namespace {
-static const size_t kMinProfileLength = 128;
-static const size_t kMaxProfileLength = 4 * 1024 * 1024;
-}
-
-ColorProfile::ColorProfile(const std::vector<char>& profile)
- : profile_(profile) {
- if (!IsValidProfileLength(profile_.size()))
- profile_.clear();
-}
-
-ColorProfile::ColorProfile() = default;
-ColorProfile::ColorProfile(ColorProfile&& other) = default;
-ColorProfile::ColorProfile(const ColorProfile& other) = default;
-ColorProfile& ColorProfile::operator=(const ColorProfile& other) = default;
-ColorProfile::~ColorProfile() = default;
-
-#if !defined(OS_WIN) && !defined(OS_MACOSX)
-// static
-ColorProfile ColorProfile::GetFromBestMonitor() {
- return ColorProfile();
-}
-#endif
-
-// static
-bool ColorProfile::IsValidProfileLength(size_t length) {
- return length >= kMinProfileLength && length <= kMaxProfileLength;
-}
-
-} // namespace gfx
« no previous file with comments | « ui/gfx/color_profile.h ('k') | ui/gfx/color_profile_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698