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

Unified Diff: ui/gfx/skia_util.cc

Issue 595593002: Splitting of layers for correct intersections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed minor compile issues Created 5 years, 10 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
« 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 63827e37b2c6a9f3b9428dd2225c82f3cd751882..ef07241ba5778efd278d269f626852544574890f 100644
--- a/ui/gfx/skia_util.cc
+++ b/ui/gfx/skia_util.cc
@@ -11,6 +11,7 @@
#include "third_party/skia/include/effects/SkBlurMaskFilter.h"
#include "third_party/skia/include/effects/SkGradientShader.h"
#include "third_party/skia/include/effects/SkLayerDrawLooper.h"
+#include "ui/gfx/geometry/quad_f.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/image/image_skia_rep.h"
@@ -199,4 +200,11 @@ void ConvertSkiaToRGBA(const unsigned char* skia,
}
}
+void QuadFToSkPoints(const gfx::QuadF& quad, SkPoint points[4]) {
+ points[0] = SkPoint::Make(quad.p1().x(), quad.p1().y());
+ points[1] = SkPoint::Make(quad.p2().x(), quad.p2().y());
+ points[2] = SkPoint::Make(quad.p3().x(), quad.p3().y());
+ points[3] = SkPoint::Make(quad.p4().x(), quad.p4().y());
+}
+
} // namespace gfx
« 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