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

Side by Side Diff: tests/TessellatingPathRendererTests.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 | « tests/TLSTest.cpp ('k') | tests/Test.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 BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkPath.h" 8 #include "SkPath.h"
9 9
10 #if SK_SUPPORT_GPU 10 #if SK_SUPPORT_GPU
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 args.fColor = GrColor_WHITE; 245 args.fColor = GrColor_WHITE;
246 args.fViewMatrix = &SkMatrix::I(); 246 args.fViewMatrix = &SkMatrix::I();
247 args.fPath = &path; 247 args.fPath = &path;
248 args.fStroke = &stroke; 248 args.fStroke = &stroke;
249 args.fAntiAlias = false; 249 args.fAntiAlias = false;
250 tess.drawPath(args); 250 tess.drawPath(args);
251 } 251 }
252 252
253 DEF_GPUTEST(TessellatingPathRendererTests, reporter, factory) { 253 DEF_GPUTEST(TessellatingPathRendererTests, reporter, factory) {
254 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp e>(0)); 254 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp e>(0));
255 if (NULL == context) { 255 if (nullptr == context) {
256 return; 256 return;
257 } 257 }
258 GrSurfaceDesc desc; 258 GrSurfaceDesc desc;
259 desc.fFlags = kRenderTarget_GrSurfaceFlag; 259 desc.fFlags = kRenderTarget_GrSurfaceFlag;
260 desc.fWidth = 800; 260 desc.fWidth = 800;
261 desc.fHeight = 800; 261 desc.fHeight = 800;
262 desc.fConfig = kSkia8888_GrPixelConfig; 262 desc.fConfig = kSkia8888_GrPixelConfig;
263 desc.fOrigin = kTopLeft_GrSurfaceOrigin; 263 desc.fOrigin = kTopLeft_GrSurfaceOrigin;
264 SkAutoTUnref<GrTexture> texture(context->textureProvider()->createApproxText ure(desc)); 264 SkAutoTUnref<GrTexture> texture(context->textureProvider()->createApproxText ure(desc));
265 GrTestTarget tt; 265 GrTestTarget tt;
(...skipping 13 matching lines...) Expand all
279 test_path(dt, rt, rp, create_path_8()); 279 test_path(dt, rt, rp, create_path_8());
280 test_path(dt, rt, rp, create_path_9()); 280 test_path(dt, rt, rp, create_path_9());
281 test_path(dt, rt, rp, create_path_10()); 281 test_path(dt, rt, rp, create_path_10());
282 test_path(dt, rt, rp, create_path_11()); 282 test_path(dt, rt, rp, create_path_11());
283 test_path(dt, rt, rp, create_path_12()); 283 test_path(dt, rt, rp, create_path_12());
284 test_path(dt, rt, rp, create_path_13()); 284 test_path(dt, rt, rp, create_path_13());
285 test_path(dt, rt, rp, create_path_14()); 285 test_path(dt, rt, rp, create_path_14());
286 test_path(dt, rt, rp, create_path_15()); 286 test_path(dt, rt, rp, create_path_15());
287 } 287 }
288 #endif 288 #endif
OLDNEW
« no previous file with comments | « tests/TLSTest.cpp ('k') | tests/Test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698