Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Unified Diff: ui/gfx/skia_util.cc

Issue 821703005: Remove calls to deprecated SkPDFDevice and SkPDFDocuemnt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments from reed@ Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ui/gfx/skia_util.h ('K') | « ui/gfx/skia_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« ui/gfx/skia_util.h ('K') | « ui/gfx/skia_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698