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

Unified Diff: tools/sk_tool_utils.h

Issue 2142033002: Factor code to rotate a canvas about a point. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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
Index: tools/sk_tool_utils.h
diff --git a/tools/sk_tool_utils.h b/tools/sk_tool_utils.h
index c4d7c8a265b26c463a09df36aff5085386da9aab..2cde222934e2b8336bb57028eb674e9853b329cd 100644
--- a/tools/sk_tool_utils.h
+++ b/tools/sk_tool_utils.h
@@ -26,6 +26,9 @@ class SkTextBlobBuilder;
namespace sk_tool_utils {
+ /** Rotate the canvas around the given point. */
+ void rotate_about(SkCanvas* canvas, SkScalar degrees, SkScalar px, SkScalar py);
+
const char* colortype_name(SkColorType);
/**
« gm/strokes.cpp ('K') | « samplecode/SampleHT.cpp ('k') | tools/sk_tool_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698