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 2000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2011 | 2011 |
2012 while (iter.next()) { | 2012 while (iter.next()) { |
2013 SkDeviceFilteredPaint dfp(iter.fDevice, looper.paint()); | 2013 SkDeviceFilteredPaint dfp(iter.fDevice, looper.paint()); |
2014 iter.fDevice->drawPosText(iter, text, byteLength, &pos->fX, 0, 2, | 2014 iter.fDevice->drawPosText(iter, text, byteLength, &pos->fX, 0, 2, |
2015 dfp.paint()); | 2015 dfp.paint()); |
2016 } | 2016 } |
2017 | 2017 |
2018 LOOPER_END | 2018 LOOPER_END |
2019 } | 2019 } |
2020 | 2020 |
| 2021 void SkCanvas::drawPosTextBounded(const void* text, size_t byteLength, |
| 2022 const SkPoint pos[], const SkRect& bbox, |
| 2023 const SkPaint& paint) { |
| 2024 this->drawPosText(text, byteLength, pos, paint); |
| 2025 } |
| 2026 |
2021 void SkCanvas::drawPosTextH(const void* text, size_t byteLength, | 2027 void SkCanvas::drawPosTextH(const void* text, size_t byteLength, |
2022 const SkScalar xpos[], SkScalar constY, | 2028 const SkScalar xpos[], SkScalar constY, |
2023 const SkPaint& paint) { | 2029 const SkPaint& paint) { |
2024 CHECK_SHADER_NOSETCONTEXT(paint); | 2030 CHECK_SHADER_NOSETCONTEXT(paint); |
2025 | 2031 |
2026 LOOPER_BEGIN(paint, SkDrawFilter::kText_Type) | 2032 LOOPER_BEGIN(paint, SkDrawFilter::kText_Type) |
2027 | 2033 |
2028 while (iter.next()) { | 2034 while (iter.next()) { |
2029 SkDeviceFilteredPaint dfp(iter.fDevice, looper.paint()); | 2035 SkDeviceFilteredPaint dfp(iter.fDevice, looper.paint()); |
2030 iter.fDevice->drawPosText(iter, text, byteLength, xpos, constY, 1, | 2036 iter.fDevice->drawPosText(iter, text, byteLength, xpos, constY, 1, |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2241 return *paint; | 2247 return *paint; |
2242 } | 2248 } |
2243 | 2249 |
2244 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } | 2250 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } |
2245 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } | 2251 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } |
2246 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } | 2252 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } |
2247 | 2253 |
2248 /////////////////////////////////////////////////////////////////////////////// | 2254 /////////////////////////////////////////////////////////////////////////////// |
2249 | 2255 |
2250 SkCanvas::ClipVisitor::~ClipVisitor() { } | 2256 SkCanvas::ClipVisitor::~ClipVisitor() { } |
OLD | NEW |