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

Unified Diff: ui/gfx/skia_util.cc

Issue 1369563002: Compare the full rect in SkCanvasVideoRenderer::Paint for transform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sizemedia: rebase Created 5 years, 2 months 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
« no previous file with comments | « 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 ef07241ba5778efd278d269f626852544574890f..696dea305563ad30e3cab466828c3a021f4d42c7 100644
--- a/ui/gfx/skia_util.cc
+++ b/ui/gfx/skia_util.cc
@@ -57,6 +57,10 @@ SizeF SkSizeToSizeF(const SkSize& size) {
return SizeF(SkScalarToFloat(size.width()), SkScalarToFloat(size.height()));
}
+Size SkISizeToSize(const SkISize& size) {
+ return Size(size.width(), size.height());
+}
+
void TransformToFlattenedSkMatrix(const gfx::Transform& transform,
SkMatrix* flattened) {
// Convert from 4x4 to 3x3 by dropping the third row and column.
« no previous file with comments | « ui/gfx/skia_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698