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

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

Issue 464063003: Add support for new drawPicture entry point to debugger (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | src/utils/debugger/SkDrawCommand.h » ('j') | 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, const SkMatrix*, con st SkPaint*) { 522 void SkDebugCanvas::onDrawPicture(const SkPicture* picture,
523 // todo: add matrix and paint to SkDrawPictureCommand 523 const SkMatrix* matrix,
524 this->addDrawCommand(new SkDrawPictureCommand(picture)); 524 const SkPaint* paint) {
525 this->addDrawCommand(new SkDrawPictureCommand(picture, matrix, paint));
525 } 526 }
526 527
527 void SkDebugCanvas::drawPoints(PointMode mode, size_t count, 528 void SkDebugCanvas::drawPoints(PointMode mode, size_t count,
528 const SkPoint pts[], const SkPaint& paint) { 529 const SkPoint pts[], const SkPaint& paint) {
529 this->addDrawCommand(new SkDrawPointsCommand(mode, count, pts, paint)); 530 this->addDrawCommand(new SkDrawPointsCommand(mode, count, pts, paint));
530 } 531 }
531 532
532 void SkDebugCanvas::onDrawPosText(const void* text, size_t byteLength, const SkP oint pos[], 533 void SkDebugCanvas::onDrawPosText(const void* text, size_t byteLength, const SkP oint pos[],
533 const SkPaint& paint) { 534 const SkPaint& paint) {
534 this->addDrawCommand(new SkDrawPosTextCommand(text, byteLength, pos, paint)) ; 535 this->addDrawCommand(new SkDrawPosTextCommand(text, byteLength, pos, paint)) ;
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 } 732 }
732 733
733 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 734 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
734 if (fCalledAddStackData) { 735 if (fCalledAddStackData) {
735 fClipStackData.appendf("<br>"); 736 fClipStackData.appendf("<br>");
736 addPathData(devPath, "pathOut"); 737 addPathData(devPath, "pathOut");
737 return true; 738 return true;
738 } 739 }
739 return false; 740 return false;
740 } 741 }
OLDNEW
« no previous file with comments | « no previous file | src/utils/debugger/SkDrawCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698