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

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

Issue 1048383002: [SkDebugger] Flatten drawPicture ops (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | 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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 this->addDrawCommand(new SkDrawPaintCommand(paint)); 452 this->addDrawCommand(new SkDrawPaintCommand(paint));
453 } 453 }
454 454
455 void SkDebugCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { 455 void SkDebugCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) {
456 this->addDrawCommand(new SkDrawPathCommand(path, paint)); 456 this->addDrawCommand(new SkDrawPathCommand(path, paint));
457 } 457 }
458 458
459 void SkDebugCanvas::onDrawPicture(const SkPicture* picture, 459 void SkDebugCanvas::onDrawPicture(const SkPicture* picture,
460 const SkMatrix* matrix, 460 const SkMatrix* matrix,
461 const SkPaint* paint) { 461 const SkPaint* paint) {
462 this->addDrawCommand(new SkDrawPictureCommand(picture, matrix, paint)); 462 this->addDrawCommand(new SkBeginDrawPictureCommand(picture, matrix, paint));
463 this->INHERITED::onDrawPicture(picture, matrix, paint);
464 this->addDrawCommand(new SkEndDrawPictureCommand(SkToBool(matrix) || SkToBoo l(paint)));
463 } 465 }
464 466
465 void SkDebugCanvas::onDrawPoints(PointMode mode, size_t count, 467 void SkDebugCanvas::onDrawPoints(PointMode mode, size_t count,
466 const SkPoint pts[], const SkPaint& paint) { 468 const SkPoint pts[], const SkPaint& paint) {
467 this->addDrawCommand(new SkDrawPointsCommand(mode, count, pts, paint)); 469 this->addDrawCommand(new SkDrawPointsCommand(mode, count, pts, paint));
468 } 470 }
469 471
470 void SkDebugCanvas::onDrawPosText(const void* text, size_t byteLength, const SkP oint pos[], 472 void SkDebugCanvas::onDrawPosText(const void* text, size_t byteLength, const SkP oint pos[],
471 const SkPaint& paint) { 473 const SkPaint& paint) {
472 this->addDrawCommand(new SkDrawPosTextCommand(text, byteLength, pos, paint)) ; 474 this->addDrawCommand(new SkDrawPosTextCommand(text, byteLength, pos, paint)) ;
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 } 673 }
672 674
673 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 675 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
674 if (fCalledAddStackData) { 676 if (fCalledAddStackData) {
675 fClipStackData.appendf("<br>"); 677 fClipStackData.appendf("<br>");
676 addPathData(devPath, "pathOut"); 678 addPathData(devPath, "pathOut");
677 return true; 679 return true;
678 } 680 }
679 return false; 681 return false;
680 } 682 }
OLDNEW
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | src/utils/debugger/SkDrawCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698