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

Unified Diff: skia/ext/analysis_canvas.h

Issue 248693002: update canvas drawtext virtuals Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update BenchmarkingCanvas for new onDrawText virtuals Created 6 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 | « no previous file | skia/ext/analysis_canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/analysis_canvas.h
diff --git a/skia/ext/analysis_canvas.h b/skia/ext/analysis_canvas.h
index 922a3ee5c60077706799f3735dbebb554799b07f..efe93149ef64b543626674fe4d4fcf4ea0b03f03 100644
--- a/skia/ext/analysis_canvas.h
+++ b/skia/ext/analysis_canvas.h
@@ -59,25 +59,6 @@ class SK_API AnalysisCanvas : public SkCanvas, public SkDrawPictureCallback {
const SkPaint* paint = NULL) OVERRIDE;
virtual void drawSprite(const SkBitmap&, int left, int top,
const SkPaint* paint = NULL) OVERRIDE;
- virtual void drawText(const void* text,
- size_t byteLength,
- SkScalar x,
- SkScalar y,
- const SkPaint&) OVERRIDE;
- virtual void drawPosText(const void* text,
- size_t byteLength,
- const SkPoint pos[],
- const SkPaint&) OVERRIDE;
- virtual void drawPosTextH(const void* text,
- size_t byteLength,
- const SkScalar xpos[],
- SkScalar constY,
- const SkPaint&) OVERRIDE;
- virtual void drawTextOnPath(const void* text,
- size_t byteLength,
- const SkPath& path,
- const SkMatrix* matrix,
- const SkPaint&) OVERRIDE;
virtual void drawVertices(VertexMode,
int vertexCount,
const SkPoint vertices[],
@@ -105,7 +86,27 @@ class SK_API AnalysisCanvas : public SkCanvas, public SkDrawPictureCallback {
SkRegion::Op op,
ClipEdgeStyle edge_style) OVERRIDE;
- private:
+ virtual void onDrawText(const void* text,
+ size_t byteLength,
+ SkScalar x,
+ SkScalar y,
+ const SkPaint&) OVERRIDE;
+ virtual void onDrawPosText(const void* text,
+ size_t byteLength,
+ const SkPoint pos[],
+ const SkPaint&) OVERRIDE;
+ virtual void onDrawPosTextH(const void* text,
+ size_t byteLength,
+ const SkScalar xpos[],
+ SkScalar constY,
+ const SkPaint&) OVERRIDE;
+ virtual void onDrawTextOnPath(const void* text,
+ size_t byteLength,
+ const SkPath& path,
+ const SkMatrix* matrix,
+ const SkPaint&) OVERRIDE;
+
+private:
typedef SkCanvas INHERITED;
int saved_stack_size_;
« no previous file with comments | « no previous file | skia/ext/analysis_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698