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

Side by Side Diff: src/utils/debugger/SkDebugCanvas.cpp

Issue 933483002: add Method param to drawTextOnPath, supporting SVG spec Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add guard for android Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 void SkDebugCanvas::onDrawSprite(const SkBitmap& bitmap, int left, int top, cons t SkPaint* paint) { 488 void SkDebugCanvas::onDrawSprite(const SkBitmap& bitmap, int left, int top, cons t SkPaint* paint) {
489 this->addDrawCommand(new SkDrawSpriteCommand(bitmap, left, top, paint)); 489 this->addDrawCommand(new SkDrawSpriteCommand(bitmap, left, top, paint));
490 } 490 }
491 491
492 void SkDebugCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, 492 void SkDebugCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y,
493 const SkPaint& paint) { 493 const SkPaint& paint) {
494 this->addDrawCommand(new SkDrawTextCommand(text, byteLength, x, y, paint)); 494 this->addDrawCommand(new SkDrawTextCommand(text, byteLength, x, y, paint));
495 } 495 }
496 496
497 void SkDebugCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, 497 void SkDebugCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path,
498 const SkMatrix* matrix, const SkPaint& pain t) { 498 const SkMatrix* matrix,
499 SK_SUPPORT_LEGACY_DRAWTEXTONPATH_PARAM cons t SkPaint& paint) {
500 // TODO: update command to include Method
499 this->addDrawCommand( 501 this->addDrawCommand(
500 new SkDrawTextOnPathCommand(text, byteLength, path, matrix, paint)); 502 new SkDrawTextOnPathCommand(text, byteLength, path, matrix, paint));
501 } 503 }
502 504
503 void SkDebugCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, 505 void SkDebugCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
504 const SkPaint& paint) { 506 const SkPaint& paint) {
505 this->addDrawCommand(new SkDrawTextBlobCommand(blob, x, y, paint)); 507 this->addDrawCommand(new SkDrawTextBlobCommand(blob, x, y, paint));
506 } 508 }
507 509
508 void SkDebugCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4 ], 510 void SkDebugCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4 ],
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 } 666 }
665 667
666 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 668 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
667 if (fCalledAddStackData) { 669 if (fCalledAddStackData) {
668 fClipStackData.appendf("<br>"); 670 fClipStackData.appendf("<br>");
669 addPathData(devPath, "pathOut"); 671 addPathData(devPath, "pathOut");
670 return true; 672 return true;
671 } 673 }
672 return false; 674 return false;
673 } 675 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698