aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar ajuma <ajuma@chromium.org>2014-08-18 12:59:55 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-18 12:59:55 -0700
commit750ae26745d261183001a78d24251f6392e96b27 (patch)
tree58e795cc8408f83f088cd6270d2b9b9ed84a3bfc /include
parent637e57e3beca3a2b488b16997d428406bb6f655f (diff)
Expose API for whether an SkPicture contains text
BUG=chromium:399728 R=reed@google.com, nduca@chromium.org Author: ajuma@chromium.org Review URL: https://codereview.chromium.org/478673002
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPicture.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 2a89277f5e..004f130621 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -204,6 +204,10 @@ public:
*/
int approximateOpCount() const;
+ /** Return true if this picture contains text.
+ */
+ bool hasText() const;
+
private:
// V2 : adds SkPixelRef's generation ID.
// V3 : PictInfo tag at beginning, and EOF tag at the end