aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrLayerAtlas.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/GrLayerAtlas.cpp
parent935f1b1a20f673b81e78bec913cd702ffc793c99 (diff)
Use std::unique_ptr.
Diffstat (limited to 'src/gpu/GrLayerAtlas.cpp')
-rw-r--r--src/gpu/GrLayerAtlas.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrLayerAtlas.cpp b/src/gpu/GrLayerAtlas.cpp
index df8215a607..c1f8732b35 100644
--- a/src/gpu/GrLayerAtlas.cpp
+++ b/src/gpu/GrLayerAtlas.cpp
@@ -12,7 +12,7 @@
#include "GrTextureProvider.h"
///////////////////////////////////////////////////////////////////////////////
-GrLayerAtlas::Plot::Plot()
+GrLayerAtlas::Plot::Plot()
: fID(-1)
, fRects(nullptr) {
fOffset.set(0, 0);
@@ -54,7 +54,7 @@ bool GrLayerAtlas::reattachBackingTexture() {
SkASSERT(!fTexture);
fTexture.reset(fTexProvider->findAndRefTextureByUniqueKey(get_layer_atlas_key()));
- return SkToBool(fTexture);
+ return fTexture != nullptr;
}
void GrLayerAtlas::createBackingTexture() {
@@ -71,7 +71,7 @@ void GrLayerAtlas::createBackingTexture() {
fTexture->resourcePriv().setUniqueKey(get_layer_atlas_key());
}
-GrLayerAtlas::GrLayerAtlas(GrTextureProvider* texProvider, GrPixelConfig config,
+GrLayerAtlas::GrLayerAtlas(GrTextureProvider* texProvider, GrPixelConfig config,
GrSurfaceFlags flags,
const SkISize& backingTextureSize,
int numPlotsX, int numPlotsY) {