Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: src/core/SkCanvas.cpp

Issue 22812014: Fix name of "bleed" flag (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/core/SkCanvas.h ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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() { }
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698