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

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

Issue 1228083004: add src-rect-constraint to drawImageRect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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
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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 const SkRect& dst, const SkPaint* paint) { 421 const SkRect& dst, const SkPaint* paint) {
422 this->addDrawCommand(new SkDrawBitmapNineCommand(bitmap, center, dst, paint) ); 422 this->addDrawCommand(new SkDrawBitmapNineCommand(bitmap, center, dst, paint) );
423 } 423 }
424 424
425 void SkDebugCanvas::onDrawImage(const SkImage* image, SkScalar left, SkScalar to p, 425 void SkDebugCanvas::onDrawImage(const SkImage* image, SkScalar left, SkScalar to p,
426 const SkPaint* paint) { 426 const SkPaint* paint) {
427 SkDebugf("SkDebugCanvas::onDrawImage unimplemented\n"); 427 SkDebugf("SkDebugCanvas::onDrawImage unimplemented\n");
428 } 428 }
429 429
430 void SkDebugCanvas::onDrawImageRect(const SkImage* image, const SkRect* src, con st SkRect& dst, 430 void SkDebugCanvas::onDrawImageRect(const SkImage* image, const SkRect* src, con st SkRect& dst,
431 const SkPaint* paint) { 431 const SkPaint* paint SRC_RECT_CONSTRAINT_PAR AM(constraint)) {
432 SkDebugf("SkDebugCanvas::onDrawImageRect unimplemented\n"); 432 SkDebugf("SkDebugCanvas::onDrawImageRect unimplemented\n");
433 } 433 }
434 434
435 void SkDebugCanvas::onDrawOval(const SkRect& oval, const SkPaint& paint) { 435 void SkDebugCanvas::onDrawOval(const SkRect& oval, const SkPaint& paint) {
436 this->addDrawCommand(new SkDrawOvalCommand(oval, paint)); 436 this->addDrawCommand(new SkDrawOvalCommand(oval, paint));
437 } 437 }
438 438
439 void SkDebugCanvas::onDrawPaint(const SkPaint& paint) { 439 void SkDebugCanvas::onDrawPaint(const SkPaint& paint) {
440 this->addDrawCommand(new SkDrawPaintCommand(paint)); 440 this->addDrawCommand(new SkDrawPaintCommand(paint));
441 } 441 }
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 } 661 }
662 662
663 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 663 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
664 if (fCalledAddStackData) { 664 if (fCalledAddStackData) {
665 fClipStackData.appendf("<br>"); 665 fClipStackData.appendf("<br>");
666 addPathData(devPath, "pathOut"); 666 addPathData(devPath, "pathOut");
667 return true; 667 return true;
668 } 668 }
669 return false; 669 return false;
670 } 670 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698