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

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

Issue 1239193002: remove all guards for changes to drawBitmapRect / drawImageRect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 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 | « src/utils/debugger/SkDebugCanvas.h ('k') | tests/RecordDrawTest.cpp » ('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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 this->addDrawCommand(new SkConcatCommand(matrix)); 408 this->addDrawCommand(new SkConcatCommand(matrix));
409 this->INHERITED::didConcat(matrix); 409 this->INHERITED::didConcat(matrix);
410 } 410 }
411 411
412 void SkDebugCanvas::onDrawBitmap(const SkBitmap& bitmap, SkScalar left, 412 void SkDebugCanvas::onDrawBitmap(const SkBitmap& bitmap, SkScalar left,
413 SkScalar top, const SkPaint* paint) { 413 SkScalar top, const SkPaint* paint) {
414 this->addDrawCommand(new SkDrawBitmapCommand(bitmap, left, top, paint)); 414 this->addDrawCommand(new SkDrawBitmapCommand(bitmap, left, top, paint));
415 } 415 }
416 416
417 void SkDebugCanvas::onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst, 417 void SkDebugCanvas::onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst,
418 const SkPaint* paint, SK_VIRTUAL_CONSTRAINT _TYPE constraint) { 418 const SkPaint* paint, SrcRectConstraint con straint) {
419 this->addDrawCommand(new SkDrawBitmapRectCommand(bitmap, src, dst, paint, 419 this->addDrawCommand(new SkDrawBitmapRectCommand(bitmap, src, dst, paint,
420 (SrcRectConstraint)constrai nt)); 420 (SrcRectConstraint)constrai nt));
421 } 421 }
422 422
423 void SkDebugCanvas::onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& cent er, 423 void SkDebugCanvas::onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& cent er,
424 const SkRect& dst, const SkPaint* paint) { 424 const SkRect& dst, const SkPaint* paint) {
425 this->addDrawCommand(new SkDrawBitmapNineCommand(bitmap, center, dst, paint) ); 425 this->addDrawCommand(new SkDrawBitmapNineCommand(bitmap, center, dst, paint) );
426 } 426 }
427 427
428 void SkDebugCanvas::onDrawImage(const SkImage* image, SkScalar left, SkScalar to p, 428 void SkDebugCanvas::onDrawImage(const SkImage* image, SkScalar left, SkScalar to p,
429 const SkPaint* paint) { 429 const SkPaint* paint) {
430 this->addDrawCommand(new SkDrawImageCommand(image, left, top, paint)); 430 this->addDrawCommand(new SkDrawImageCommand(image, left, top, paint));
431 } 431 }
432 432
433 void SkDebugCanvas::onDrawImageRect(const SkImage* image, const SkRect* src, con st SkRect& dst, 433 void SkDebugCanvas::onDrawImageRect(const SkImage* image, const SkRect* src, con st SkRect& dst,
434 const SkPaint* paint SRC_RECT_CONSTRAINT_PAR AM(constraint)) { 434 const SkPaint* paint, SrcRectConstraint cons traint) {
435 SRC_RECT_CONSTRAINT_LOCAL_DEFAULT(constraint);
436 this->addDrawCommand(new SkDrawImageRectCommand(image, src, dst, paint, cons traint)); 435 this->addDrawCommand(new SkDrawImageRectCommand(image, src, dst, paint, cons traint));
437 } 436 }
438 437
439 void SkDebugCanvas::onDrawOval(const SkRect& oval, const SkPaint& paint) { 438 void SkDebugCanvas::onDrawOval(const SkRect& oval, const SkPaint& paint) {
440 this->addDrawCommand(new SkDrawOvalCommand(oval, paint)); 439 this->addDrawCommand(new SkDrawOvalCommand(oval, paint));
441 } 440 }
442 441
443 void SkDebugCanvas::onDrawPaint(const SkPaint& paint) { 442 void SkDebugCanvas::onDrawPaint(const SkPaint& paint) {
444 this->addDrawCommand(new SkDrawPaintCommand(paint)); 443 this->addDrawCommand(new SkDrawPaintCommand(paint));
445 } 444 }
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 } 664 }
666 665
667 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 666 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
668 if (fCalledAddStackData) { 667 if (fCalledAddStackData) {
669 fClipStackData.appendf("<br>"); 668 fClipStackData.appendf("<br>");
670 addPathData(devPath, "pathOut"); 669 addPathData(devPath, "pathOut");
671 return true; 670 return true;
672 } 671 }
673 return false; 672 return false;
674 } 673 }
OLDNEW
« no previous file with comments | « src/utils/debugger/SkDebugCanvas.h ('k') | tests/RecordDrawTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698