| OLD | NEW |
| 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_ANALYSIS_H_ | 5 #ifndef UI_GFX_COLOR_ANALYSIS_H_ |
| 6 #define UI_GFX_COLOR_ANALYSIS_H_ | 6 #define UI_GFX_COLOR_ANALYSIS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include <stdint.h> |
| 9 |
| 9 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/ref_counted_memory.h" | 12 #include "base/memory/ref_counted_memory.h" |
| 12 #include "third_party/skia/include/core/SkColor.h" | 13 #include "third_party/skia/include/core/SkColor.h" |
| 13 #include "ui/gfx/geometry/matrix3_f.h" | 14 #include "ui/gfx/geometry/matrix3_f.h" |
| 14 #include "ui/gfx/gfx_export.h" | 15 #include "ui/gfx/gfx_export.h" |
| 15 | 16 |
| 16 class SkBitmap; | 17 class SkBitmap; |
| 17 | 18 |
| 18 namespace color_utils { | 19 namespace color_utils { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // initialized to the required size and type (SkBitmap::kA8_Config). | 127 // initialized to the required size and type (SkBitmap::kA8_Config). |
| 127 // Returns true if the conversion succeeded. Note that there might be legitimate | 128 // Returns true if the conversion succeeded. Note that there might be legitimate |
| 128 // reasons for the process to fail even if all input was correct. This is a | 129 // reasons for the process to fail even if all input was correct. This is a |
| 129 // condition the caller must be able to handle. | 130 // condition the caller must be able to handle. |
| 130 GFX_EXPORT bool ComputePrincipalComponentImage(const SkBitmap& source_bitmap, | 131 GFX_EXPORT bool ComputePrincipalComponentImage(const SkBitmap& source_bitmap, |
| 131 SkBitmap* target_bitmap); | 132 SkBitmap* target_bitmap); |
| 132 | 133 |
| 133 } // namespace color_utils | 134 } // namespace color_utils |
| 134 | 135 |
| 135 #endif // UI_GFX_COLOR_ANALYSIS_H_ | 136 #endif // UI_GFX_COLOR_ANALYSIS_H_ |
| OLD | NEW |