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

Unified Diff: tools/sk_tool_utils.h

Issue 1076593002: Start canonicalizing color for all A8 textblobs (Closed) Base URL: https://skia.googlesource.com/skia.git@atcachemasks
Patch Set: nits Created 5 years, 8 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 | « src/gpu/GrAtlasTextContext.cpp ('k') | tools/sk_tool_utils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/sk_tool_utils.h
diff --git a/tools/sk_tool_utils.h b/tools/sk_tool_utils.h
index 0299e742d2cd847eb93a9a94428b6250b3e3c562..d9345a6b922f008999ad12092ff990dc0f97dabc 100644
--- a/tools/sk_tool_utils.h
+++ b/tools/sk_tool_utils.h
@@ -19,6 +19,7 @@ class SkCanvas;
class SkPaint;
class SkShader;
class SkTestFont;
+class SkTextBlobBuilder;
namespace sk_tool_utils {
@@ -69,6 +70,10 @@ namespace sk_tool_utils {
}
};
+ // A helper for inserting a drawtext call into a SkTextBlobBuilder
+ void add_to_text_blob(SkTextBlobBuilder* builder, const char* text, const SkPaint& origPaint,
+ SkScalar x, SkScalar y);
+
} // namespace sk_tool_utils
#endif // sk_tool_utils_DEFINED
« no previous file with comments | « src/gpu/GrAtlasTextContext.cpp ('k') | tools/sk_tool_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698