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 1841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1852 s.fTop = srcY[y]; | 1852 s.fTop = srcY[y]; |
1853 s.fBottom = srcY[y+1]; | 1853 s.fBottom = srcY[y+1]; |
1854 d.fTop = dstY[y]; | 1854 d.fTop = dstY[y]; |
1855 d.fBottom = dstY[y+1]; | 1855 d.fBottom = dstY[y+1]; |
1856 for (int x = 0; x < 3; x++) { | 1856 for (int x = 0; x < 3; x++) { |
1857 s.fLeft = srcX[x]; | 1857 s.fLeft = srcX[x]; |
1858 s.fRight = srcX[x+1]; | 1858 s.fRight = srcX[x+1]; |
1859 d.fLeft = dstX[x]; | 1859 d.fLeft = dstX[x]; |
1860 d.fRight = dstX[x+1]; | 1860 d.fRight = dstX[x+1]; |
1861 this->internalDrawBitmapRect(bitmap, &s, d, paint, | 1861 this->internalDrawBitmapRect(bitmap, &s, d, paint, |
1862 kNone_DrawBitmapRectflag); | 1862 kNone_DrawBitmapRectFlag); |
1863 } | 1863 } |
1864 } | 1864 } |
1865 } | 1865 } |
1866 | 1866 |
1867 void SkCanvas::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 1867 void SkCanvas::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
1868 const SkRect& dst, const SkPaint* paint) { | 1868 const SkRect& dst, const SkPaint* paint) { |
1869 SkDEBUGCODE(bitmap.validate();) | 1869 SkDEBUGCODE(bitmap.validate();) |
1870 | 1870 |
1871 // Need a device entry-point, so gpu can use a mesh | 1871 // Need a device entry-point, so gpu can use a mesh |
1872 this->internalDrawBitmapNine(bitmap, center, dst, paint); | 1872 this->internalDrawBitmapNine(bitmap, center, dst, paint); |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2219 return *paint; | 2219 return *paint; |
2220 } | 2220 } |
2221 | 2221 |
2222 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } | 2222 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } |
2223 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } | 2223 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } |
2224 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } | 2224 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } |
2225 | 2225 |
2226 /////////////////////////////////////////////////////////////////////////////// | 2226 /////////////////////////////////////////////////////////////////////////////// |
2227 | 2227 |
2228 SkCanvas::ClipVisitor::~ClipVisitor() { } | 2228 SkCanvas::ClipVisitor::~ClipVisitor() { } |
OLD | NEW |