Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Side by Side Diff: gm/textblobuseaftergpufree.cpp

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gm/textblobshader.cpp ('k') | gm/texteffects.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BD-style license that can be 4 * Use of this source code is governed by a BD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "gm.h" 8 #include "gm.h"
9 9
10 #if SK_SUPPORT_GPU 10 #if SK_SUPPORT_GPU
(...skipping 13 matching lines...) Expand all
24 SkString onShortName() override { 24 SkString onShortName() override {
25 return SkString("textblobuseaftergpufree"); 25 return SkString("textblobuseaftergpufree");
26 } 26 }
27 27
28 SkISize onISize() override { 28 SkISize onISize() override {
29 return SkISize::Make(kWidth, kHeight); 29 return SkISize::Make(kWidth, kHeight);
30 } 30 }
31 31
32 void onDraw(SkCanvas* canvas) override { 32 void onDraw(SkCanvas* canvas) override {
33 // This GM exists to test a specific feature of the GPU backend. 33 // This GM exists to test a specific feature of the GPU backend.
34 if (NULL == canvas->getGrContext()) { 34 if (nullptr == canvas->getGrContext()) {
35 this->drawGpuOnlyMessage(canvas); 35 this->drawGpuOnlyMessage(canvas);
36 return; 36 return;
37 } 37 }
38 38
39 const char text[] = "Hamburgefons"; 39 const char text[] = "Hamburgefons";
40 40
41 SkPaint paint; 41 SkPaint paint;
42 sk_tool_utils::set_portable_typeface(&paint); 42 sk_tool_utils::set_portable_typeface(&paint);
43 paint.setAntiAlias(true); 43 paint.setAntiAlias(true);
44 paint.setTextSize(20); 44 paint.setTextSize(20);
(...skipping 21 matching lines...) Expand all
66 static const int kHeight = 200; 66 static const int kHeight = 200;
67 67
68 typedef GM INHERITED; 68 typedef GM INHERITED;
69 }; 69 };
70 70
71 ////////////////////////////////////////////////////////////////////////////// 71 //////////////////////////////////////////////////////////////////////////////
72 72
73 DEF_GM(return new TextBlobUseAfterGpuFree;) 73 DEF_GM(return new TextBlobUseAfterGpuFree;)
74 } 74 }
75 #endif 75 #endif
OLDNEW
« no previous file with comments | « gm/textblobshader.cpp ('k') | gm/texteffects.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698