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

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

Issue 789033002: Remove SkCanvas::drawBitmapMatrix() (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: non-const canvas ptr Created 6 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 /* 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 this->addDrawCommand(new SkDrawBitmapCommand(bitmap, left, top, paint)); 465 this->addDrawCommand(new SkDrawBitmapCommand(bitmap, left, top, paint));
466 } 466 }
467 467
468 void SkDebugCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, 468 void SkDebugCanvas::drawBitmapRectToRect(const SkBitmap& bitmap,
469 const SkRect* src, const SkRect& dst, 469 const SkRect* src, const SkRect& dst,
470 const SkPaint* paint, 470 const SkPaint* paint,
471 SkCanvas::DrawBitmapRectFlags flags) { 471 SkCanvas::DrawBitmapRectFlags flags) {
472 this->addDrawCommand(new SkDrawBitmapRectCommand(bitmap, src, dst, paint, fl ags)); 472 this->addDrawCommand(new SkDrawBitmapRectCommand(bitmap, src, dst, paint, fl ags));
473 } 473 }
474 474
475 void SkDebugCanvas::drawBitmapMatrix(const SkBitmap& bitmap,
476 const SkMatrix& matrix, const SkPaint* pain t) {
477 this->addDrawCommand(new SkDrawBitmapMatrixCommand(bitmap, matrix, paint));
478 }
479
480 void SkDebugCanvas::drawBitmapNine(const SkBitmap& bitmap, 475 void SkDebugCanvas::drawBitmapNine(const SkBitmap& bitmap,
481 const SkIRect& center, const SkRect& dst, const SkPaint* paint) { 476 const SkIRect& center, const SkRect& dst, const SkPaint* paint) {
482 this->addDrawCommand(new SkDrawBitmapNineCommand(bitmap, center, dst, paint) ); 477 this->addDrawCommand(new SkDrawBitmapNineCommand(bitmap, center, dst, paint) );
483 } 478 }
484 479
485 void SkDebugCanvas::drawData(const void* data, size_t length) { 480 void SkDebugCanvas::drawData(const void* data, size_t length) {
486 this->addDrawCommand(new SkDrawDataCommand(data, length)); 481 this->addDrawCommand(new SkDrawDataCommand(data, length));
487 } 482 }
488 483
489 void SkDebugCanvas::beginCommentGroup(const char* description) { 484 void SkDebugCanvas::beginCommentGroup(const char* description) {
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 } 723 }
729 724
730 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 725 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
731 if (fCalledAddStackData) { 726 if (fCalledAddStackData) {
732 fClipStackData.appendf("<br>"); 727 fClipStackData.appendf("<br>");
733 addPathData(devPath, "pathOut"); 728 addPathData(devPath, "pathOut");
734 return true; 729 return true;
735 } 730 }
736 return false; 731 return false;
737 } 732 }
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