Remove chromeos==0 blacklist for test_isolation_mode.
[chromium-blink-merge.git] / ui / gfx / color_profile.h
blobdd0fefb8a8d1b00acbbd680221523f1809336761
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_GFX_COLOR_PROFILE_H_
6 #define UI_GFX_COLOR_PROFILE_H_
8 #include <vector>
10 #include "ui/gfx/geometry/rect.h"
11 #include "ui/gfx/gfx_export.h"
12 #include "ui/gfx/native_widget_types.h"
14 namespace gfx {
16 class GFX_EXPORT ColorProfile {
17 public:
18 // On Windows, this reads a file from disk so it should not be run on the UI
19 // or IO thread.
20 ColorProfile();
21 ~ColorProfile();
23 const std::vector<char>& profile() const { return profile_; }
25 private:
26 std::vector<char> profile_;
28 DISALLOW_COPY_AND_ASSIGN(ColorProfile);
31 inline bool InvalidColorProfileLength(size_t length) {
32 const size_t kMinProfileLength = 128;
33 const size_t kMaxProfileLength = 4 * 1024 * 1024;
34 return (length < kMinProfileLength) || (length > kMaxProfileLength);
37 } // namespace gfx
39 #endif // UI_GFX_COLOR_PROFILE_H_