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 2012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2023 LOOPER_BEGIN(paint, SkDrawFilter::kText_Type) | 2023 LOOPER_BEGIN(paint, SkDrawFilter::kText_Type) |
2024 | 2024 |
2025 while (iter.next()) { | 2025 while (iter.next()) { |
2026 iter.fDevice->drawTextOnPath(iter, text, byteLength, path, | 2026 iter.fDevice->drawTextOnPath(iter, text, byteLength, path, |
2027 matrix, looper.paint()); | 2027 matrix, looper.paint()); |
2028 } | 2028 } |
2029 | 2029 |
2030 LOOPER_END | 2030 LOOPER_END |
2031 } | 2031 } |
2032 | 2032 |
2033 #ifdef SK_BUILD_FOR_ANDROID | |
2034 void SkCanvas::drawPosTextOnPath(const void* text, size_t byteLength, | |
2035 const SkPoint pos[], const SkPaint& paint, | |
2036 const SkPath& path, const SkMatrix* matrix) { | |
2037 CHECK_SHADER_NOSETCONTEXT(paint); | |
2038 | |
2039 LOOPER_BEGIN(paint, SkDrawFilter::kText_Type) | |
2040 | |
2041 while (iter.next()) { | |
2042 iter.fDevice->drawPosTextOnPath(iter, text, byteLength, pos, | |
2043 looper.paint(), path, matrix); | |
2044 } | |
2045 | |
2046 LOOPER_END | |
2047 } | |
2048 #endif | |
2049 | |
2050 void SkCanvas::drawVertices(VertexMode vmode, int vertexCount, | 2033 void SkCanvas::drawVertices(VertexMode vmode, int vertexCount, |
2051 const SkPoint verts[], const SkPoint texs[], | 2034 const SkPoint verts[], const SkPoint texs[], |
2052 const SkColor colors[], SkXfermode* xmode, | 2035 const SkColor colors[], SkXfermode* xmode, |
2053 const uint16_t indices[], int indexCount, | 2036 const uint16_t indices[], int indexCount, |
2054 const SkPaint& paint) { | 2037 const SkPaint& paint) { |
2055 CHECK_SHADER_NOSETCONTEXT(paint); | 2038 CHECK_SHADER_NOSETCONTEXT(paint); |
2056 | 2039 |
2057 LOOPER_BEGIN(paint, SkDrawFilter::kPath_Type) | 2040 LOOPER_BEGIN(paint, SkDrawFilter::kPath_Type) |
2058 | 2041 |
2059 while (iter.next()) { | 2042 while (iter.next()) { |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2222 return *paint; | 2205 return *paint; |
2223 } | 2206 } |
2224 | 2207 |
2225 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } | 2208 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } |
2226 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } | 2209 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } |
2227 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } | 2210 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } |
2228 | 2211 |
2229 /////////////////////////////////////////////////////////////////////////////// | 2212 /////////////////////////////////////////////////////////////////////////////// |
2230 | 2213 |
2231 SkCanvas::ClipVisitor::~ClipVisitor() { } | 2214 SkCanvas::ClipVisitor::~ClipVisitor() { } |
OLD | NEW |