Index: src/pipe/SkGPipeWrite.cpp |
diff --git a/src/pipe/SkGPipeWrite.cpp b/src/pipe/SkGPipeWrite.cpp |
index 94a30a34e254d6dc6e3083ece796b14f102381d9..32af81d9217a196d19cdfe1de7f8368039296dcc 100644 |
--- a/src/pipe/SkGPipeWrite.cpp |
+++ b/src/pipe/SkGPipeWrite.cpp |
@@ -283,6 +283,8 @@ protected: |
SkScalar constY, const SkPaint&) SK_OVERRIDE; |
virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, |
const SkMatrix* matrix, const SkPaint&) SK_OVERRIDE; |
+ virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
+ const SkPaint& paint) SK_OVERRIDE; |
virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
const SkPoint texCoords[4], SkXfermode* xmode, |
const SkPaint& paint) SK_OVERRIDE; |
@@ -935,6 +937,13 @@ void SkGPipeCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const |
} |
} |
+void SkGPipeCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
+ const SkPaint& paint) { |
+ // FIXME: blob serialization only supports SkWriteBuffers |
+ // -- convert to SkWriter32 to avoid unrolling? |
+ this->INHERITED::onDrawTextBlob(blob, x, y, paint); |
+} |
+ |
void SkGPipeCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matrix, |
const SkPaint* paint) { |
// we want to playback the picture into individual draw calls |