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

Unified Diff: include/core/SkDevice.h

Issue 473633002: SkTextBlob (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: More const API, minimal docs. Created 6 years, 4 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: include/core/SkDevice.h
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
index de2f8ddd3581c3570b2230895d84e8610077bdb3..295aadf3ee8fff16b513e974ba1a2d984014df93 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -242,6 +242,11 @@ protected:
const SkColor colors[], SkXfermode* xmode,
const uint16_t indices[], int indexCount,
const SkPaint& paint) = 0;
+
+ // Default impl uses the draw text methods.
+ virtual void drawTextBlob(const SkDraw&, const SkTextBlob* blob,
+ const SkPaint& paint);
+
// default implementation calls drawVertices
virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColor colors[4],
const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint);
@@ -362,6 +367,7 @@ private:
friend class SkDeferredDevice; // for newSurface
friend class SkSurface_Raster;
+ friend class SkTextChunk; // FIXME: ewww
// used to change the backend's pixels (and possibly config/rowbytes)
// but cannot change the width/height, so there should be no change to
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkTextBlob.h » ('j') | include/core/SkTextBlob.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698