| 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 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 class RectF; | 27 class RectF; |
| 28 class ShadowValue; | 28 class ShadowValue; |
| 29 class Transform; | 29 class Transform; |
| 30 | 30 |
| 31 // Convert between Skia and gfx types. | 31 // Convert between Skia and gfx types. |
| 32 GFX_EXPORT SkPoint PointToSkPoint(const Point& point); | 32 GFX_EXPORT SkPoint PointToSkPoint(const Point& point); |
| 33 GFX_EXPORT SkIPoint PointToSkIPoint(const Point& point); | 33 GFX_EXPORT SkIPoint PointToSkIPoint(const Point& point); |
| 34 GFX_EXPORT SkPoint PointFToSkPoint(const PointF& point); | 34 GFX_EXPORT SkPoint PointFToSkPoint(const PointF& point); |
| 35 GFX_EXPORT SkRect RectToSkRect(const Rect& rect); | 35 GFX_EXPORT SkRect RectToSkRect(const Rect& rect); |
| 36 GFX_EXPORT SkIRect RectToSkIRect(const Rect& rect); | 36 GFX_EXPORT SkIRect RectToSkIRect(const Rect& rect); |
| 37 GFX_EXPORT SkIRect RectToSkIRectChecked(const Rect& rect); |
| 37 GFX_EXPORT Rect SkIRectToRect(const SkIRect& rect); | 38 GFX_EXPORT Rect SkIRectToRect(const SkIRect& rect); |
| 39 GFX_EXPORT Rect SkIRectToRectChecked(const SkIRect& rect); |
| 38 GFX_EXPORT SkRect RectFToSkRect(const RectF& rect); | 40 GFX_EXPORT SkRect RectFToSkRect(const RectF& rect); |
| 39 GFX_EXPORT RectF SkRectToRectF(const SkRect& rect); | 41 GFX_EXPORT RectF SkRectToRectF(const SkRect& rect); |
| 40 GFX_EXPORT SkSize SizeFToSkSize(const SizeF& size); | 42 GFX_EXPORT SkSize SizeFToSkSize(const SizeF& size); |
| 41 GFX_EXPORT SizeF SkSizeToSizeF(const SkSize& size); | 43 GFX_EXPORT SizeF SkSizeToSizeF(const SkSize& size); |
| 42 GFX_EXPORT Size SkISizeToSize(const SkISize& size); | 44 GFX_EXPORT Size SkISizeToSize(const SkISize& size); |
| 43 | 45 |
| 44 GFX_EXPORT void QuadFToSkPoints(const gfx::QuadF& quad, SkPoint points[4]); | 46 GFX_EXPORT void QuadFToSkPoints(const gfx::QuadF& quad, SkPoint points[4]); |
| 45 | 47 |
| 46 GFX_EXPORT void TransformToFlattenedSkMatrix(const gfx::Transform& transform, | 48 GFX_EXPORT void TransformToFlattenedSkMatrix(const gfx::Transform& transform, |
| 47 SkMatrix* flattened); | 49 SkMatrix* flattened); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 102 |
| 101 // Converts an hb_position_t to a Skia floating-point value. | 103 // Converts an hb_position_t to a Skia floating-point value. |
| 102 GFX_EXPORT SkScalar HarfBuzzUnitsToSkiaScalar(int value); | 104 GFX_EXPORT SkScalar HarfBuzzUnitsToSkiaScalar(int value); |
| 103 | 105 |
| 104 // Converts an hb_position_t to a float. | 106 // Converts an hb_position_t to a float. |
| 105 GFX_EXPORT float HarfBuzzUnitsToFloat(int value); | 107 GFX_EXPORT float HarfBuzzUnitsToFloat(int value); |
| 106 | 108 |
| 107 } // namespace gfx | 109 } // namespace gfx |
| 108 | 110 |
| 109 #endif // UI_GFX_SKIA_UTIL_H_ | 111 #endif // UI_GFX_SKIA_UTIL_H_ |
| OLD | NEW |