| 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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 | 583 |
| 584 void SkDebugCanvas::onPopCull() { | 584 void SkDebugCanvas::onPopCull() { |
| 585 this->addDrawCommand(new SkPopCullCommand()); | 585 this->addDrawCommand(new SkPopCullCommand()); |
| 586 } | 586 } |
| 587 | 587 |
| 588 void SkDebugCanvas::willRestore() { | 588 void SkDebugCanvas::willRestore() { |
| 589 this->addDrawCommand(new SkRestoreCommand()); | 589 this->addDrawCommand(new SkRestoreCommand()); |
| 590 this->INHERITED::willRestore(); | 590 this->INHERITED::willRestore(); |
| 591 } | 591 } |
| 592 | 592 |
| 593 void SkDebugCanvas::willSave(SaveFlags flags) { | 593 void SkDebugCanvas::willSave() { |
| 594 this->addDrawCommand(new SkSaveCommand(flags)); | 594 this->addDrawCommand(new SkSaveCommand()); |
| 595 this->INHERITED::willSave(flags); | 595 this->INHERITED::willSave(); |
| 596 } | 596 } |
| 597 | 597 |
| 598 SkCanvas::SaveLayerStrategy SkDebugCanvas::willSaveLayer(const SkRect* bounds, c
onst SkPaint* paint, | 598 SkCanvas::SaveLayerStrategy SkDebugCanvas::willSaveLayer(const SkRect* bounds, c
onst SkPaint* paint, |
| 599 SaveFlags flags) { | 599 SaveFlags flags) { |
| 600 this->addDrawCommand(new SkSaveLayerCommand(bounds, paint, flags)); | 600 this->addDrawCommand(new SkSaveLayerCommand(bounds, paint, flags)); |
| 601 this->INHERITED::willSaveLayer(bounds, paint, flags); | 601 this->INHERITED::willSaveLayer(bounds, paint, flags); |
| 602 // No need for a full layer. | 602 // No need for a full layer. |
| 603 return kNoLayer_SaveLayerStrategy; | 603 return kNoLayer_SaveLayerStrategy; |
| 604 } | 604 } |
| 605 | 605 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 } | 730 } |
| 731 | 731 |
| 732 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { | 732 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { |
| 733 if (fCalledAddStackData) { | 733 if (fCalledAddStackData) { |
| 734 fClipStackData.appendf("<br>"); | 734 fClipStackData.appendf("<br>"); |
| 735 addPathData(devPath, "pathOut"); | 735 addPathData(devPath, "pathOut"); |
| 736 return true; | 736 return true; |
| 737 } | 737 } |
| 738 return false; | 738 return false; |
| 739 } | 739 } |
| OLD | NEW |