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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, DrawBitmapRectFlags f
lags) { | 418 const SkPaint* paint, SK_VIRTUAL_CONSTRAINT
_TYPE constraint) { |
419 this->addDrawCommand(new SkDrawBitmapRectCommand(bitmap, src, dst, paint, fl
ags)); | 419 this->addDrawCommand(new SkDrawBitmapRectCommand(bitmap, src, dst, paint, |
| 420 (SrcRectConstraint)constrai
nt)); |
420 } | 421 } |
421 | 422 |
422 void SkDebugCanvas::onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& cent
er, | 423 void SkDebugCanvas::onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& cent
er, |
423 const SkRect& dst, const SkPaint* paint) { | 424 const SkRect& dst, const SkPaint* paint) { |
424 this->addDrawCommand(new SkDrawBitmapNineCommand(bitmap, center, dst, paint)
); | 425 this->addDrawCommand(new SkDrawBitmapNineCommand(bitmap, center, dst, paint)
); |
425 } | 426 } |
426 | 427 |
427 void SkDebugCanvas::onDrawImage(const SkImage* image, SkScalar left, SkScalar to
p, | 428 void SkDebugCanvas::onDrawImage(const SkImage* image, SkScalar left, SkScalar to
p, |
428 const SkPaint* paint) { | 429 const SkPaint* paint) { |
429 SkDebugf("SkDebugCanvas::onDrawImage unimplemented\n"); | 430 SkDebugf("SkDebugCanvas::onDrawImage unimplemented\n"); |
430 } | 431 } |
431 | 432 |
432 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, |
433 const SkPaint* paint) { | 434 const SkPaint* paint SRC_RECT_CONSTRAINT_PAR
AM(constraint)) { |
434 SkDebugf("SkDebugCanvas::onDrawImageRect unimplemented\n"); | 435 SkDebugf("SkDebugCanvas::onDrawImageRect unimplemented\n"); |
435 } | 436 } |
436 | 437 |
437 void SkDebugCanvas::onDrawOval(const SkRect& oval, const SkPaint& paint) { | 438 void SkDebugCanvas::onDrawOval(const SkRect& oval, const SkPaint& paint) { |
438 this->addDrawCommand(new SkDrawOvalCommand(oval, paint)); | 439 this->addDrawCommand(new SkDrawOvalCommand(oval, paint)); |
439 } | 440 } |
440 | 441 |
441 void SkDebugCanvas::onDrawPaint(const SkPaint& paint) { | 442 void SkDebugCanvas::onDrawPaint(const SkPaint& paint) { |
442 this->addDrawCommand(new SkDrawPaintCommand(paint)); | 443 this->addDrawCommand(new SkDrawPaintCommand(paint)); |
443 } | 444 } |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 } | 664 } |
664 | 665 |
665 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { | 666 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { |
666 if (fCalledAddStackData) { | 667 if (fCalledAddStackData) { |
667 fClipStackData.appendf("<br>"); | 668 fClipStackData.appendf("<br>"); |
668 addPathData(devPath, "pathOut"); | 669 addPathData(devPath, "pathOut"); |
669 return true; | 670 return true; |
670 } | 671 } |
671 return false; | 672 return false; |
672 } | 673 } |
OLD | NEW |