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

Side by Side Diff: ui/gfx/color_profile.h

Issue 1796293003: Image decode color: Push color profile from browser to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: leave empty check 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/public/platform/Platform.h ('k') | ui/gfx/color_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_COLOR_PROFILE_H_ 5 #ifndef UI_GFX_COLOR_PROFILE_H_
6 #define UI_GFX_COLOR_PROFILE_H_ 6 #define UI_GFX_COLOR_PROFILE_H_
7 7
8 #include <stddef.h>
9
10 #include <vector> 8 #include <vector>
11 9
12 #include "base/macros.h" 10 #include "base/macros.h"
13 #include "build/build_config.h" 11 #include "build/build_config.h"
14 #include "ui/gfx/geometry/rect.h"
15 #include "ui/gfx/gfx_export.h" 12 #include "ui/gfx/gfx_export.h"
16 #include "ui/gfx/native_widget_types.h"
17 13
18 namespace gfx { 14 namespace gfx {
19 15
20 class GFX_EXPORT ColorProfile { 16 class GFX_EXPORT ColorProfile {
21 public: 17 public:
18 ColorProfile(const std::vector<char>& profile);
22 ColorProfile(); 19 ColorProfile();
23 ColorProfile(ColorProfile&& other); 20 ColorProfile(ColorProfile&& other);
24 ColorProfile(const ColorProfile& other); 21 ColorProfile(const ColorProfile& other);
25 ColorProfile& operator=(const ColorProfile& other); 22 ColorProfile& operator=(const ColorProfile& other);
26 ~ColorProfile(); 23 ~ColorProfile();
27 24
28 const std::vector<char>& profile() const { return profile_; } 25 const std::vector<char>& profile() const { return profile_; }
29 26
30 #if defined(OS_WIN) 27 #if defined(OS_WIN)
31 // This will read color profile information from disk and cache the results 28 // This will read color profile information from disk and cache the results
(...skipping 10 matching lines...) Expand all
42 39
43 static bool IsValidProfileLength(size_t length); 40 static bool IsValidProfileLength(size_t length);
44 41
45 private: 42 private:
46 std::vector<char> profile_; 43 std::vector<char> profile_;
47 }; 44 };
48 45
49 } // namespace gfx 46 } // namespace gfx
50 47
51 #endif // UI_GFX_COLOR_PROFILE_H_ 48 #endif // UI_GFX_COLOR_PROFILE_H_
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/Platform.h ('k') | ui/gfx/color_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698