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

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

Issue 1534443003: remove drawSprite from canvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: really tired of unused variable warnings 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
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
491 void SkDebugCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, 487 void SkDebugCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y,
492 const SkPaint& paint) { 488 const SkPaint& paint) {
493 this->addDrawCommand(new SkDrawTextCommand(text, byteLength, x, y, paint)); 489 this->addDrawCommand(new SkDrawTextCommand(text, byteLength, x, y, paint));
494 } 490 }
495 491
496 void SkDebugCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, 492 void SkDebugCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path,
497 const SkMatrix* matrix, const SkPaint& pain t) { 493 const SkMatrix* matrix, const SkPaint& pain t) {
498 this->addDrawCommand( 494 this->addDrawCommand(
499 new SkDrawTextOnPathCommand(text, byteLength, path, matrix, paint)); 495 new SkDrawTextOnPathCommand(text, byteLength, path, matrix, paint));
500 } 496 }
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 } 659 }
664 660
665 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 661 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
666 if (fCalledAddStackData) { 662 if (fCalledAddStackData) {
667 fClipStackData.appendf("<br>"); 663 fClipStackData.appendf("<br>");
668 addPathData(devPath, "pathOut"); 664 addPathData(devPath, "pathOut");
669 return true; 665 return true;
670 } 666 }
671 return false; 667 return false;
672 } 668 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698