| Index: ui/gfx/skia_util.cc
|
| diff --git a/ui/gfx/skia_util.cc b/ui/gfx/skia_util.cc
|
| index 7a9e4ecfe95166d243af90b0ac03d7514ea58904..0e38c3815a068cb764811024dd23e1527b7f5906 100644
|
| --- a/ui/gfx/skia_util.cc
|
| +++ b/ui/gfx/skia_util.cc
|
| @@ -47,6 +47,16 @@ RectF SkRectToRectF(const SkRect& rect) {
|
| SkScalarToFloat(rect.height()));
|
| }
|
|
|
| +SkSize SizeToSkSize(const Size& size) {
|
| + return SkSize::Make(SkIntToScalar(size.width()),
|
| + SkIntToScalar(size.height()));
|
| +}
|
| +
|
| +Size SkSizeToSize(const SkSize& size) {
|
| + return Size(SkScalarTruncToInt(size.width()),
|
| + SkScalarTruncToInt(size.height()));
|
| +}
|
| +
|
| void TransformToFlattenedSkMatrix(const gfx::Transform& transform,
|
| SkMatrix* flattened) {
|
| // Convert from 4x4 to 3x3 by dropping the third row and column.
|
|
|