aboutsummaryrefslogtreecommitdiffstats
path: root/gm/yuvtorgbeffect.cpp
diff options
context:
space:
mode:
authorhalcanary <halcanary@google.com>2015-08-27 07:41:13 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-27 07:41:16 -0700
commit96fcdcc219d2a0d3579719b84b28bede76efba64 (patch)
tree0ec5ea0193d8292df8bf5ed9dd8498a5eb5763dd /gm/yuvtorgbeffect.cpp
parent435af2f736c85c3274a0c6760a3523810750d237 (diff)
downloadplatform_external_skqp-96fcdcc219d2a0d3579719b84b28bede76efba64.tar.gz
platform_external_skqp-96fcdcc219d2a0d3579719b84b28bede76efba64.tar.bz2
platform_external_skqp-96fcdcc219d2a0d3579719b84b28bede76efba64.zip
Style Change: NULL->nullptr
DOCS_PREVIEW= https://skia.org/?cl=1316233002 Review URL: https://codereview.chromium.org/1316233002
Diffstat (limited to 'gm/yuvtorgbeffect.cpp')
-rw-r--r--gm/yuvtorgbeffect.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/gm/yuvtorgbeffect.cpp b/gm/yuvtorgbeffect.cpp
index 9d5ec450f9..4fd23efaa7 100644
--- a/gm/yuvtorgbeffect.cpp
+++ b/gm/yuvtorgbeffect.cpp
@@ -68,26 +68,26 @@ protected:
void onDraw(SkCanvas* canvas) override {
GrRenderTarget* rt = canvas->internal_private_accessTopLayerRenderTarget();
- if (NULL == rt) {
+ if (nullptr == rt) {
return;
}
GrContext* context = rt->getContext();
- if (NULL == context) {
+ if (nullptr == context) {
this->drawGpuOnlyMessage(canvas);
return;
}
GrTestTarget tt;
context->getTestTarget(&tt);
- if (NULL == tt.target()) {
+ if (nullptr == tt.target()) {
SkDEBUGFAIL("Couldn't get Gr test target.");
return;
}
SkAutoTUnref<GrTexture> texture[3];
- texture[0].reset(GrRefCachedBitmapTexture(context, fBmp[0], NULL));
- texture[1].reset(GrRefCachedBitmapTexture(context, fBmp[1], NULL));
- texture[2].reset(GrRefCachedBitmapTexture(context, fBmp[2], NULL));
+ texture[0].reset(GrRefCachedBitmapTexture(context, fBmp[0], nullptr));
+ texture[1].reset(GrRefCachedBitmapTexture(context, fBmp[1], nullptr));
+ texture[2].reset(GrRefCachedBitmapTexture(context, fBmp[2], nullptr));
if (!texture[0] || !texture[1] || !texture[2]) {
return;