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

Side by Side Diff: tests/ImageFilterTest.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 | « tests/ImageDecodingTest.cpp ('k') | tests/ImageTest.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 2013 Google Inc. 2 * Copyright 2013 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 "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkBitmapDevice.h" 9 #include "SkBitmapDevice.h"
10 #include "SkBitmapSource.h" 10 #include "SkBitmapSource.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 typedef SkImageFilter INHERITED; 73 typedef SkImageFilter INHERITED;
74 }; 74 };
75 75
76 } 76 }
77 77
78 SkFlattenable* MatrixTestImageFilter::CreateProc(SkReadBuffer& buffer) { 78 SkFlattenable* MatrixTestImageFilter::CreateProc(SkReadBuffer& buffer) {
79 SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 1); 79 SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 1);
80 skiatest::Reporter* reporter = (skiatest::Reporter*)buffer.readFunctionPtr() ; 80 skiatest::Reporter* reporter = (skiatest::Reporter*)buffer.readFunctionPtr() ;
81 SkMatrix matrix; 81 SkMatrix matrix;
82 buffer.readMatrix(&matrix); 82 buffer.readMatrix(&matrix);
83 return SkNEW_ARGS(MatrixTestImageFilter, (reporter, matrix)); 83 return new MatrixTestImageFilter(reporter, matrix);
84 } 84 }
85 85
86 #ifndef SK_IGNORE_TO_STRING 86 #ifndef SK_IGNORE_TO_STRING
87 void MatrixTestImageFilter::toString(SkString* str) const { 87 void MatrixTestImageFilter::toString(SkString* str) const {
88 str->appendf("MatrixTestImageFilter: ("); 88 str->appendf("MatrixTestImageFilter: (");
89 str->append(")"); 89 str->append(")");
90 } 90 }
91 #endif 91 #endif
92 92
93 static void make_small_bitmap(SkBitmap& bitmap) { 93 static void make_small_bitmap(SkBitmap& bitmap) {
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 SkSurface::kNo_Budgeted , 1279 SkSurface::kNo_Budgeted ,
1280 SkImageInfo::MakeN32Pre mul(1, 1), 1280 SkImageInfo::MakeN32Pre mul(1, 1),
1281 0, 1281 0,
1282 &props, 1282 &props,
1283 SkGpuDevice::kUninit_In itContents)); 1283 SkGpuDevice::kUninit_In itContents));
1284 SkImageFilter::Proxy proxy(device); 1284 SkImageFilter::Proxy proxy(device);
1285 1285
1286 test_negative_blur_sigma(&proxy, reporter); 1286 test_negative_blur_sigma(&proxy, reporter);
1287 } 1287 }
1288 #endif 1288 #endif
OLDNEW
« no previous file with comments | « tests/ImageDecodingTest.cpp ('k') | tests/ImageTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698