| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |