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