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

Unified Diff: include/gpu/SkGpuDevice.h

Issue 85653004: Move distance field font code into SkGpuDevice (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month 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: include/gpu/SkGpuDevice.h
diff --git a/include/gpu/SkGpuDevice.h b/include/gpu/SkGpuDevice.h
index d37f63d7a0724e9547f55860dfc1b364365b95ff..14ded78a7f935387a699a8285882b467e3e43f04 100644
--- a/include/gpu/SkGpuDevice.h
+++ b/include/gpu/SkGpuDevice.h
@@ -206,6 +206,16 @@ private:
SkCanvas::DrawBitmapRectFlags flags,
int tileSize);
+ /*
+ * For distance field fonts
+ */
+ void drawDFText(const char text[], size_t byteLength,
+ SkScalar x, SkScalar y,
+ const SkPaint& paint);
+ void drawPosDFText(const char text[], size_t byteLength,
+ const SkScalar pos[], SkScalar constY, int scalarsPerPos,
+ const SkPaint& paint);
+
/**
* Returns non-initialized instance.
*/

Powered by Google App Engine
This is Rietveld 408576698