aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/text/GrStencilAndCoverTextContext.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-03-10 10:10:03 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-10 10:10:03 -0800
commit20c1e3abfc681771f73eb19fde7284196e028940 (patch)
tree68ce99423776fbf759f2574138c69eafc675ac69 /src/gpu/text/GrStencilAndCoverTextContext.cpp
parent8e478812815f7494c45afb8cf6f077f548b55daa (diff)
Use std::unique_ptr.
TBR=reed@google.com Review URL: https://codereview.chromium.org/1780933003
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);