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

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

Issue 22861002: Revert "Add SkCanvas::drawPosTextBounded." (Closed) Base URL: https://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 | « src/core/SkBBoxRecord.cpp ('k') | no next file » | 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 1972 matching lines...) Expand 10 before | Expand all | Expand 10 after
1983 1983
1984 while (iter.next()) { 1984 while (iter.next()) {
1985 SkDeviceFilteredPaint dfp(iter.fDevice, looper.paint()); 1985 SkDeviceFilteredPaint dfp(iter.fDevice, looper.paint());
1986 iter.fDevice->drawPosText(iter, text, byteLength, &pos->fX, 0, 2, 1986 iter.fDevice->drawPosText(iter, text, byteLength, &pos->fX, 0, 2,
1987 dfp.paint()); 1987 dfp.paint());
1988 } 1988 }
1989 1989
1990 LOOPER_END 1990 LOOPER_END
1991 } 1991 }
1992 1992
1993 void SkCanvas::drawPosTextBounded(const void* text, size_t byteLength,
1994 const SkPoint pos[], const SkRect& bbox,
1995 const SkPaint& paint) {
1996 this->drawPosText(text, byteLength, pos, paint);
1997 }
1998
1999 void SkCanvas::drawPosTextH(const void* text, size_t byteLength, 1993 void SkCanvas::drawPosTextH(const void* text, size_t byteLength,
2000 const SkScalar xpos[], SkScalar constY, 1994 const SkScalar xpos[], SkScalar constY,
2001 const SkPaint& paint) { 1995 const SkPaint& paint) {
2002 CHECK_SHADER_NOSETCONTEXT(paint); 1996 CHECK_SHADER_NOSETCONTEXT(paint);
2003 1997
2004 LOOPER_BEGIN(paint, SkDrawFilter::kText_Type) 1998 LOOPER_BEGIN(paint, SkDrawFilter::kText_Type)
2005 1999
2006 while (iter.next()) { 2000 while (iter.next()) {
2007 SkDeviceFilteredPaint dfp(iter.fDevice, looper.paint()); 2001 SkDeviceFilteredPaint dfp(iter.fDevice, looper.paint());
2008 iter.fDevice->drawPosText(iter, text, byteLength, xpos, constY, 1, 2002 iter.fDevice->drawPosText(iter, text, byteLength, xpos, constY, 1,
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
2219 return *paint; 2213 return *paint;
2220 } 2214 }
2221 2215
2222 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } 2216 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); }
2223 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } 2217 int SkCanvas::LayerIter::x() const { return fImpl->getX(); }
2224 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } 2218 int SkCanvas::LayerIter::y() const { return fImpl->getY(); }
2225 2219
2226 /////////////////////////////////////////////////////////////////////////////// 2220 ///////////////////////////////////////////////////////////////////////////////
2227 2221
2228 SkCanvas::ClipVisitor::~ClipVisitor() { } 2222 SkCanvas::ClipVisitor::~ClipVisitor() { }
OLDNEW
« no previous file with comments | « src/core/SkBBoxRecord.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698