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

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

Issue 1529803004: Revert of remove drawSprite from canvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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') | 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 * 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 "SkClipStack.h" 8 #include "SkClipStack.h"
9 #include "SkColorPriv.h" 9 #include "SkColorPriv.h"
10 #include "SkDebugCanvas.h" 10 #include "SkDebugCanvas.h"
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 477
478 void SkDebugCanvas::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) { 478 void SkDebugCanvas::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) {
479 this->addDrawCommand(new SkDrawRRectCommand(rrect, paint)); 479 this->addDrawCommand(new SkDrawRRectCommand(rrect, paint));
480 } 480 }
481 481
482 void SkDebugCanvas::onDrawDRRect(const SkRRect& outer, const SkRRect& inner, 482 void SkDebugCanvas::onDrawDRRect(const SkRRect& outer, const SkRRect& inner,
483 const SkPaint& paint) { 483 const SkPaint& paint) {
484 this->addDrawCommand(new SkDrawDRRectCommand(outer, inner, paint)); 484 this->addDrawCommand(new SkDrawDRRectCommand(outer, inner, paint));
485 } 485 }
486 486
487 void SkDebugCanvas::onDrawSprite(const SkBitmap& bitmap, int left, int top, cons t SkPaint* paint) {
488 this->addDrawCommand(new SkDrawSpriteCommand(bitmap, left, top, paint));
489 }
490
487 void SkDebugCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, 491 void SkDebugCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y,
488 const SkPaint& paint) { 492 const SkPaint& paint) {
489 this->addDrawCommand(new SkDrawTextCommand(text, byteLength, x, y, paint)); 493 this->addDrawCommand(new SkDrawTextCommand(text, byteLength, x, y, paint));
490 } 494 }
491 495
492 void SkDebugCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, 496 void SkDebugCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path,
493 const SkMatrix* matrix, const SkPaint& pain t) { 497 const SkMatrix* matrix, const SkPaint& pain t) {
494 this->addDrawCommand( 498 this->addDrawCommand(
495 new SkDrawTextOnPathCommand(text, byteLength, path, matrix, paint)); 499 new SkDrawTextOnPathCommand(text, byteLength, path, matrix, paint));
496 } 500 }
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 } 663 }
660 664
661 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 665 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
662 if (fCalledAddStackData) { 666 if (fCalledAddStackData) {
663 fClipStackData.appendf("<br>"); 667 fClipStackData.appendf("<br>");
664 addPathData(devPath, "pathOut"); 668 addPathData(devPath, "pathOut");
665 return true; 669 return true;
666 } 670 }
667 return false; 671 return false;
668 } 672 }
OLDNEW
« no previous file with comments | « src/utils/debugger/SkDebugCanvas.h ('k') | src/utils/debugger/SkDrawCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698