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

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

Issue 448793004: add drawPicture variant that takes a matrix and paint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more dummies so we can land Created 6 years, 4 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
« no previous file with comments | « src/utils/debugger/SkDebugCanvas.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 } 512 }
513 513
514 void SkDebugCanvas::drawPaint(const SkPaint& paint) { 514 void SkDebugCanvas::drawPaint(const SkPaint& paint) {
515 this->addDrawCommand(new SkDrawPaintCommand(paint)); 515 this->addDrawCommand(new SkDrawPaintCommand(paint));
516 } 516 }
517 517
518 void SkDebugCanvas::drawPath(const SkPath& path, const SkPaint& paint) { 518 void SkDebugCanvas::drawPath(const SkPath& path, const SkPaint& paint) {
519 this->addDrawCommand(new SkDrawPathCommand(path, paint)); 519 this->addDrawCommand(new SkDrawPathCommand(path, paint));
520 } 520 }
521 521
522 void SkDebugCanvas::onDrawPicture(const SkPicture* picture) { 522 void SkDebugCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix*, con st SkPaint*) {
523 // todo: add matrix and paint to SkDrawPictureCommand
523 this->addDrawCommand(new SkDrawPictureCommand(picture)); 524 this->addDrawCommand(new SkDrawPictureCommand(picture));
524 } 525 }
525 526
526 void SkDebugCanvas::drawPoints(PointMode mode, size_t count, 527 void SkDebugCanvas::drawPoints(PointMode mode, size_t count,
527 const SkPoint pts[], const SkPaint& paint) { 528 const SkPoint pts[], const SkPaint& paint) {
528 this->addDrawCommand(new SkDrawPointsCommand(mode, count, pts, paint)); 529 this->addDrawCommand(new SkDrawPointsCommand(mode, count, pts, paint));
529 } 530 }
530 531
531 void SkDebugCanvas::onDrawPosText(const void* text, size_t byteLength, const SkP oint pos[], 532 void SkDebugCanvas::onDrawPosText(const void* text, size_t byteLength, const SkP oint pos[],
532 const SkPaint& paint) { 533 const SkPaint& paint) {
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 } 731 }
731 732
732 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 733 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
733 if (fCalledAddStackData) { 734 if (fCalledAddStackData) {
734 fClipStackData.appendf("<br>"); 735 fClipStackData.appendf("<br>");
735 addPathData(devPath, "pathOut"); 736 addPathData(devPath, "pathOut");
736 return true; 737 return true;
737 } 738 }
738 return false; 739 return false;
739 } 740 }
OLDNEW
« no previous file with comments | « src/utils/debugger/SkDebugCanvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698