aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/text/GrStencilAndCoverTextContext.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-03-16 08:39:41 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-16 08:39:42 -0700
commit2691d76a06e1af6282f8b3a3140cc93361be10c4 (patch)
tree61ce9609bafd5df2b6303cf853542ac3dc77247e /src/gpu/text/GrStencilAndCoverTextContext.cpp
parent935f1b1a20f673b81e78bec913cd702ffc793c99 (diff)
Use std::unique_ptr.
Diffstat (limited to 'src/gpu/text/GrStencilAndCoverTextContext.cpp')
-rw-r--r--src/gpu/text/GrStencilAndCoverTextContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/text/GrStencilAndCoverTextContext.cpp b/src/gpu/text/GrStencilAndCoverTextContext.cpp
index ab9025d316..661f22512d 100644
--- a/src/gpu/text/GrStencilAndCoverTextContext.cpp
+++ b/src/gpu/text/GrStencilAndCoverTextContext.cpp
@@ -329,7 +329,7 @@ class GrStencilAndCoverTextContext::FallbackBlobBuilder {
public:
FallbackBlobBuilder() : fBuffIdx(0), fCount(0) {}
- bool isInitialized() const { return SkToBool(fBuilder); }
+ bool isInitialized() const { return fBuilder != nullptr; }
void init(const SkPaint& font, SkScalar textRatio);