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

Unified Diff: skia/ext/benchmarking_canvas.cc

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 | « skia/ext/analysis_canvas.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/benchmarking_canvas.cc
diff --git a/skia/ext/benchmarking_canvas.cc b/skia/ext/benchmarking_canvas.cc
index ec2ff3cadde4a397594625e597c3a51559e580c1..f765cd175598e92b7ca0868e9110a4f4978d28f6 100644
--- a/skia/ext/benchmarking_canvas.cc
+++ b/skia/ext/benchmarking_canvas.cc
@@ -114,33 +114,6 @@ public:
SkProxyCanvas::drawSprite(bitmap, left, top, paint);
}
- virtual void drawText(const void* text, size_t byteLength, SkScalar x,
- SkScalar y, const SkPaint& paint) OVERRIDE {
- AutoStamper stamper(this);
- SkProxyCanvas::drawText(text, byteLength, x, y, paint);
- }
-
- virtual void drawPosText(const void* text, size_t byteLength,
- const SkPoint pos[],
- const SkPaint& paint) OVERRIDE {
- AutoStamper stamper(this);
- SkProxyCanvas::drawPosText(text, byteLength, pos, paint);
- }
-
- virtual void drawPosTextH(const void* text, size_t byteLength,
- const SkScalar xpos[], SkScalar constY,
- const SkPaint& paint) OVERRIDE {
- AutoStamper stamper(this);
- SkProxyCanvas::drawPosTextH(text, byteLength, xpos, constY, paint);
- }
-
- virtual void drawTextOnPath(const void* text, size_t byteLength,
- const SkPath& path, const SkMatrix* matrix,
- const SkPaint& paint) OVERRIDE {
- AutoStamper stamper(this);
- SkProxyCanvas::drawTextOnPath(text, byteLength, path, matrix, paint);
- }
-
virtual void drawPicture(SkPicture& picture) OVERRIDE {
AutoStamper stamper(this);
SkProxyCanvas::drawPicture(picture);
@@ -162,6 +135,33 @@ public:
}
protected:
+ virtual void onDrawText(const void* text, size_t byteLength, SkScalar x,
+ SkScalar y, const SkPaint& paint) OVERRIDE {
+ AutoStamper stamper(this);
+ SkProxyCanvas::onDrawText(text, byteLength, x, y, paint);
+ }
+
+ virtual void onDrawPosText(const void* text, size_t byteLength,
+ const SkPoint pos[],
+ const SkPaint& paint) OVERRIDE {
+ AutoStamper stamper(this);
+ SkProxyCanvas::onDrawPosText(text, byteLength, pos, paint);
+ }
+
+ virtual void onDrawPosTextH(const void* text, size_t byteLength,
+ const SkScalar xpos[], SkScalar constY,
+ const SkPaint& paint) OVERRIDE {
+ AutoStamper stamper(this);
+ SkProxyCanvas::onDrawPosTextH(text, byteLength, xpos, constY, paint);
+ }
+
+ virtual void onDrawTextOnPath(const void* text, size_t byteLength,
+ const SkPath& path, const SkMatrix* matrix,
+ const SkPaint& paint) OVERRIDE {
+ AutoStamper stamper(this);
+ SkProxyCanvas::onDrawTextOnPath(text, byteLength, path, matrix, paint);
+ }
+
virtual void onClipRect(const SkRect& rect, SkRegion::Op op,
ClipEdgeStyle edge_style) OVERRIDE {
AutoStamper stamper(this);
« no previous file with comments | « skia/ext/analysis_canvas.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698