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

Unified Diff: Source/platform/graphics/skia/SkiaUtils.h

Issue 895153002: Make CanvasRenderingContext2D use SkCanvas directly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix issue with the copy composite operator 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
« no previous file with comments | « Source/platform/graphics/ImageBuffer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/skia/SkiaUtils.h
diff --git a/Source/platform/graphics/skia/SkiaUtils.h b/Source/platform/graphics/skia/SkiaUtils.h
index a54d28fac2abfdce619ed655b6e1372a0714e65e..934c07a70f848bdfb8b4468981ac232176679c65 100644
--- a/Source/platform/graphics/skia/SkiaUtils.h
+++ b/Source/platform/graphics/skia/SkiaUtils.h
@@ -97,10 +97,23 @@ inline SkPath::FillType WebCoreWindRuleToSkFillType(WindRule rule)
return static_cast<SkPath::FillType>(rule);
}
+inline WindRule SkFillTypeToWindRule(SkPath::FillType fillType)
+{
+ switch (fillType) {
+ case SkPath::kWinding_FillType:
+ case SkPath::kEvenOdd_FillType:
+ return static_cast<WindRule>(fillType);
+ default:
+ ASSERT_NOT_REACHED();
+ break;
+ }
+ return RULE_NONZERO;
+}
+
// Determine if a given WebKit point is contained in a path
bool SkPathContainsPoint(const SkPath&, const FloatPoint&, SkPath::FillType);
-SkMatrix affineTransformToSkMatrix(const AffineTransform&);
+SkMatrix PLATFORM_EXPORT affineTransformToSkMatrix(const AffineTransform&);
bool nearlyIntegral(float value);
« no previous file with comments | « Source/platform/graphics/ImageBuffer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698