Index: ui/gfx/skia_util.h |
diff --git a/ui/gfx/skia_util.h b/ui/gfx/skia_util.h |
index 0c759838b863f5443b238054e1b38ea9ce6ed0f7..768afd228dd4ca91fae2406ad9831841af4a6f05 100644 |
--- a/ui/gfx/skia_util.h |
+++ b/ui/gfx/skia_util.h |
@@ -12,6 +12,7 @@ |
#include "third_party/skia/include/core/SkColor.h" |
#include "third_party/skia/include/core/SkRect.h" |
#include "third_party/skia/include/core/SkShader.h" |
+#include "ui/gfx/geometry/size.h" |
#include "ui/gfx/gfx_export.h" |
class SkBitmap; |
@@ -31,6 +32,8 @@ GFX_EXPORT SkIRect RectToSkIRect(const Rect& rect); |
GFX_EXPORT Rect SkIRectToRect(const SkIRect& rect); |
GFX_EXPORT SkRect RectFToSkRect(const RectF& rect); |
GFX_EXPORT RectF SkRectToRectF(const SkRect& rect); |
+GFX_EXPORT SkSize SizeToSkSize(const Size& size); |
+GFX_EXPORT Size SkSizeToSize(const SkSize& size); |
danakj
2014/12/23 15:57:18
This should be SkSizeToSizeF. Then use the size_co
hal.canary
2014/12/23 16:14:40
Done.
|
GFX_EXPORT void TransformToFlattenedSkMatrix(const gfx::Transform& transform, |
SkMatrix* flattened); |