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_SKIA_UTIL_H_ | 5 #ifndef UI_GFX_SKIA_UTIL_H_ |
6 #define UI_GFX_SKIA_UTIL_H_ | 6 #define UI_GFX_SKIA_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "cc/paint/paint_shader.h" | |
12 #include "third_party/skia/include/core/SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
13 #include "third_party/skia/include/core/SkRect.h" | 12 #include "third_party/skia/include/core/SkRect.h" |
14 #include "ui/gfx/geometry/quad_f.h" | 13 #include "ui/gfx/geometry/quad_f.h" |
15 #include "ui/gfx/geometry/size.h" | 14 #include "ui/gfx/geometry/size.h" |
16 #include "ui/gfx/gfx_export.h" | 15 #include "ui/gfx/gfx_export.h" |
17 | 16 |
18 class SkBitmap; | 17 class SkBitmap; |
19 class SkMatrix; | 18 class SkMatrix; |
20 | 19 |
21 namespace gfx { | 20 namespace gfx { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 57 |
59 // Converts an hb_position_t to a Skia floating-point value. | 58 // Converts an hb_position_t to a Skia floating-point value. |
60 GFX_EXPORT SkScalar HarfBuzzUnitsToSkiaScalar(int value); | 59 GFX_EXPORT SkScalar HarfBuzzUnitsToSkiaScalar(int value); |
61 | 60 |
62 // Converts an hb_position_t to a float. | 61 // Converts an hb_position_t to a float. |
63 GFX_EXPORT float HarfBuzzUnitsToFloat(int value); | 62 GFX_EXPORT float HarfBuzzUnitsToFloat(int value); |
64 | 63 |
65 } // namespace gfx | 64 } // namespace gfx |
66 | 65 |
67 #endif // UI_GFX_SKIA_UTIL_H_ | 66 #endif // UI_GFX_SKIA_UTIL_H_ |
OLD | NEW |