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

Unified Diff: src/core/SkBBoxRecord.cpp

Issue 22585002: Add SkCanvas::drawPosTextBounded. (Closed) Base URL: http://skia.googlecode.com/svn/trunk
Patch Set: spelling correction 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkBBoxRecord.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBBoxRecord.cpp
diff --git a/src/core/SkBBoxRecord.cpp b/src/core/SkBBoxRecord.cpp
index 52d599f57ea1d89f28f27e0813093f542fe59086..666e440958f6e8fc2f5b72e8122f45b91bf03175 100644
--- a/src/core/SkBBoxRecord.cpp
+++ b/src/core/SkBBoxRecord.cpp
@@ -176,6 +176,14 @@ void SkBBoxRecord::drawPosText(const void* text, size_t byteLength,
}
}
+void SkBBoxRecord::drawPosTextBounded(const void* text, size_t byteLength,
+ const SkPoint pos[], const SkRect& bbox,
+ const SkPaint& paint) {
tomhudson 2013/08/07 15:48:39 Is it worth putting in an SkASSERT here that the b
+ if (this->transformBounds(bbox, &paint)) {
+ INHERITED::drawPosText(text, byteLength, pos, paint);
+ }
+}
+
void SkBBoxRecord::drawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[],
SkScalar constY, const SkPaint& paint) {
SkRect bbox;
« no previous file with comments | « src/core/SkBBoxRecord.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698