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

Side by Side Diff: tools/debugger/SkDebugCanvas.cpp

Issue 2130643004: drawTextRSXform (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update util canvases Created 4 years, 5 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 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkCanvasPriv.h" 8 #include "SkCanvasPriv.h"
9 #include "SkClipStack.h" 9 #include "SkClipStack.h"
10 #include "SkDebugCanvas.h" 10 #include "SkDebugCanvas.h"
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 const SkPaint& paint) { 637 const SkPaint& paint) {
638 this->addDrawCommand(new SkDrawTextCommand(text, byteLength, x, y, paint)); 638 this->addDrawCommand(new SkDrawTextCommand(text, byteLength, x, y, paint));
639 } 639 }
640 640
641 void SkDebugCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, 641 void SkDebugCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path,
642 const SkMatrix* matrix, const SkPaint& pain t) { 642 const SkMatrix* matrix, const SkPaint& pain t) {
643 this->addDrawCommand( 643 this->addDrawCommand(
644 new SkDrawTextOnPathCommand(text, byteLength, path, matrix, paint)); 644 new SkDrawTextOnPathCommand(text, byteLength, path, matrix, paint));
645 } 645 }
646 646
647 void SkDebugCanvas::onDrawTextRSXform(const void* text, size_t byteLength, const SkRSXform xform[],
648 const SkRect* cull, const SkPaint& paint) {
649 this->addDrawCommand(new SkDrawTextRSXformCommand(text, byteLength, xform, c ull, paint));
650 }
651
647 void SkDebugCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, 652 void SkDebugCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
648 const SkPaint& paint) { 653 const SkPaint& paint) {
649 this->addDrawCommand(new SkDrawTextBlobCommand(blob, x, y, paint)); 654 this->addDrawCommand(new SkDrawTextBlobCommand(blob, x, y, paint));
650 } 655 }
651 656
652 void SkDebugCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4 ], 657 void SkDebugCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4 ],
653 const SkPoint texCoords[4], SkXfermode* xmode, 658 const SkPoint texCoords[4], SkXfermode* xmode,
654 const SkPaint& paint) { 659 const SkPaint& paint) {
655 this->addDrawCommand(new SkDrawPatchCommand(cubics, colors, texCoords, xmode , paint)); 660 this->addDrawCommand(new SkDrawPatchCommand(cubics, colors, texCoords, xmode , paint));
656 } 661 }
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 } 812 }
808 813
809 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 814 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
810 if (fCalledAddStackData) { 815 if (fCalledAddStackData) {
811 fClipStackData.appendf("<br>"); 816 fClipStackData.appendf("<br>");
812 addPathData(devPath, "pathOut"); 817 addPathData(devPath, "pathOut");
813 return true; 818 return true;
814 } 819 }
815 return false; 820 return false;
816 } 821 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698