| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 SKIA_EXT_SKIA_UTILS_H_ | 5 #ifndef SKIA_EXT_SKIA_UTILS_H_ |
| 6 #define SKIA_EXT_SKIA_UTILS_H_ | 6 #define SKIA_EXT_SKIA_UTILS_H_ |
| 7 | 7 |
| 8 #include "SkColor.h" | 8 #include "third_party/skia/include/core/SkColor.h" |
| 9 #include "SkShader.h" | 9 #include "third_party/skia/include/core/SkShader.h" |
| 10 | 10 |
| 11 namespace skia { | 11 namespace skia { |
| 12 | 12 |
| 13 struct HSL { | 13 struct HSL { |
| 14 double h; | 14 double h; |
| 15 double s; | 15 double s; |
| 16 double l; | 16 double l; |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 // Creates a vertical gradient shader. The caller owns the shader. | 19 // Creates a vertical gradient shader. The caller owns the shader. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 47 // following key values: | 47 // following key values: |
| 48 // 0 = remove all lightness (make all pixels black). | 48 // 0 = remove all lightness (make all pixels black). |
| 49 // 0.5 = leave unchanged. | 49 // 0.5 = leave unchanged. |
| 50 // 1 = full lightness (make all pixels white). | 50 // 1 = full lightness (make all pixels white). |
| 51 SkColor HSLShift(skia::HSL hsl, skia::HSL shift); | 51 SkColor HSLShift(skia::HSL hsl, skia::HSL shift); |
| 52 | 52 |
| 53 } // namespace skia | 53 } // namespace skia |
| 54 | 54 |
| 55 #endif // SKIA_EXT_SKIA_UTILS_H_ | 55 #endif // SKIA_EXT_SKIA_UTILS_H_ |
| 56 | 56 |
| OLD | NEW |