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

Side by Side Diff: tests/BlurTest.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 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 | « src/xml/SkDOM.cpp ('k') | tests/CachedDataTest.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 2011 Google Inc. 2 * Copyright 2011 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 "SkBlurMask.h" 8 #include "SkBlurMask.h"
9 #include "SkBlurMaskFilter.h" 9 #include "SkBlurMaskFilter.h"
10 #include "SkBlurDrawLooper.h" 10 #include "SkBlurDrawLooper.h"
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 } 286 }
287 287
288 GrSurfaceDesc desc; 288 GrSurfaceDesc desc;
289 desc.fConfig = kSkia8888_GrPixelConfig; 289 desc.fConfig = kSkia8888_GrPixelConfig;
290 desc.fFlags = kRenderTarget_GrSurfaceFlag; 290 desc.fFlags = kRenderTarget_GrSurfaceFlag;
291 desc.fWidth = resultCount; 291 desc.fWidth = resultCount;
292 desc.fHeight = 30; 292 desc.fHeight = 30;
293 desc.fSampleCnt = 0; 293 desc.fSampleCnt = 0;
294 294
295 SkAutoTUnref<GrTexture> texture(grContext->createTexture(desc, false, NULL, 0)); 295 SkAutoTUnref<GrTexture> texture(grContext->createTexture(desc, false, NULL, 0));
296 SkAutoTUnref<SkGpuDevice> device(SkNEW_ARGS(SkGpuDevice, (grContext, texture .get()))); 296 SkAutoTUnref<SkGpuDevice> device(new SkGpuDevice (grContext, texture.get()) );
297 SkCanvas canvas(device.get()); 297 SkCanvas canvas(device.get());
298 298
299 blur_path(&canvas, path, gaussianSigma); 299 blur_path(&canvas, path, gaussianSigma);
300 readback(&canvas, result, resultCount); 300 readback(&canvas, result, resultCount);
301 return true; 301 return true;
302 } 302 }
303 #endif 303 #endif
304 #endif 304 #endif
305 305
306 #if WRITE_CSV 306 #if WRITE_CSV
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 } 565 }
566 } 566 }
567 567
568 //////////////////////////////////////////////////////////////////////////////// /////////// 568 //////////////////////////////////////////////////////////////////////////////// ///////////
569 569
570 DEF_GPUTEST(Blur, reporter, factory) { 570 DEF_GPUTEST(Blur, reporter, factory) {
571 test_blur_drawing(reporter); 571 test_blur_drawing(reporter);
572 test_sigma_range(reporter, factory); 572 test_sigma_range(reporter, factory);
573 test_asABlur(reporter); 573 test_asABlur(reporter);
574 } 574 }
OLDNEW
« no previous file with comments | « src/xml/SkDOM.cpp ('k') | tests/CachedDataTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698