| 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
|
|
|