OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2008 The Android Open Source Project | 3 * Copyright 2008 The Android Open Source Project |
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 "SkCanvas.h" | 10 #include "SkCanvas.h" |
(...skipping 1457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1468 } | 1468 } |
1469 } | 1469 } |
1470 | 1470 |
1471 | 1471 |
1472 ////////////////////////////////////////////////////////////////////////////// | 1472 ////////////////////////////////////////////////////////////////////////////// |
1473 // These are the virtual drawing methods | 1473 // These are the virtual drawing methods |
1474 ////////////////////////////////////////////////////////////////////////////// | 1474 ////////////////////////////////////////////////////////////////////////////// |
1475 | 1475 |
1476 void SkCanvas::clear(SkColor color) { | 1476 void SkCanvas::clear(SkColor color) { |
1477 SkDrawIter iter(this); | 1477 SkDrawIter iter(this); |
1478 | 1478 this->predrawNotify(); |
1479 while (iter.next()) { | 1479 while (iter.next()) { |
1480 iter.fDevice->clear(color); | 1480 iter.fDevice->clear(color); |
1481 } | 1481 } |
1482 } | 1482 } |
1483 | 1483 |
1484 void SkCanvas::drawPaint(const SkPaint& paint) { | 1484 void SkCanvas::drawPaint(const SkPaint& paint) { |
1485 this->internalDrawPaint(paint); | 1485 this->internalDrawPaint(paint); |
1486 } | 1486 } |
1487 | 1487 |
1488 void SkCanvas::internalDrawPaint(const SkPaint& paint) { | 1488 void SkCanvas::internalDrawPaint(const SkPaint& paint) { |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2128 return *paint; | 2128 return *paint; |
2129 } | 2129 } |
2130 | 2130 |
2131 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } | 2131 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } |
2132 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } | 2132 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } |
2133 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } | 2133 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } |
2134 | 2134 |
2135 /////////////////////////////////////////////////////////////////////////////// | 2135 /////////////////////////////////////////////////////////////////////////////// |
2136 | 2136 |
2137 SkCanvas::ClipVisitor::~ClipVisitor() { } | 2137 SkCanvas::ClipVisitor::~ClipVisitor() { } |
OLD | NEW |