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

Side by Side Diff: gm/bigtileimagefilter.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/bigrrectaaeffect.cpp ('k') | gm/bitmapfilters.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 "SkBitmapSource.h" 8 #include "SkBitmapSource.h"
9 #include "SkTileImageFilter.h" 9 #include "SkTileImageFilter.h"
10 #include "gm.h" 10 #include "gm.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 68
69 { 69 {
70 SkPaint p2; 70 SkPaint p2;
71 71
72 SkRect bound2 = SkRect::MakeWH(SkIntToScalar(kBitmapSize), SkIntToSc alar(kBitmapSize)); 72 SkRect bound2 = SkRect::MakeWH(SkIntToScalar(kBitmapSize), SkIntToSc alar(kBitmapSize));
73 73
74 SkAutoTUnref<SkTileImageFilter> tif2(SkTileImageFilter::Create( 74 SkAutoTUnref<SkTileImageFilter> tif2(SkTileImageFilter::Create(
75 SkRect::MakeWH(SkIntToScalar(kBitmapSize), SkIntToSc alar(kBitmapSize)), 75 SkRect::MakeWH(SkIntToScalar(kBitmapSize), SkIntToSc alar(kBitmapSize)),
76 SkRect::MakeWH(SkIntToScalar(kBitmapSize), SkIntToSc alar(kBitmapSize)), 76 SkRect::MakeWH(SkIntToScalar(kBitmapSize), SkIntToSc alar(kBitmapSize)),
77 NULL)); 77 nullptr));
78 p2.setImageFilter(tif2); 78 p2.setImageFilter(tif2);
79 79
80 canvas->translate(320, 320); 80 canvas->translate(320, 320);
81 canvas->saveLayer(&bound2, &p2); 81 canvas->saveLayer(&bound2, &p2);
82 canvas->setMatrix(SkMatrix::I()); 82 canvas->setMatrix(SkMatrix::I());
83 83
84 SkRect bound3 = SkRect::MakeXYWH(320, 320, 84 SkRect bound3 = SkRect::MakeXYWH(320, 320,
85 SkIntToScalar(kBitmapSize), 85 SkIntToScalar(kBitmapSize),
86 SkIntToScalar(kBitmapSize)); 86 SkIntToScalar(kBitmapSize));
87 canvas->drawBitmapRect(fGreenBitmap, bound2, bound3, nullptr, 87 canvas->drawBitmapRect(fGreenBitmap, bound2, bound3, nullptr,
(...skipping 10 matching lines...) Expand all
98 SkBitmap fRedBitmap; 98 SkBitmap fRedBitmap;
99 SkBitmap fGreenBitmap; 99 SkBitmap fGreenBitmap;
100 100
101 typedef GM INHERITED; 101 typedef GM INHERITED;
102 }; 102 };
103 103
104 ////////////////////////////////////////////////////////////////////////////// 104 //////////////////////////////////////////////////////////////////////////////
105 105
106 DEF_GM(return new BigTileImageFilterGM;) 106 DEF_GM(return new BigTileImageFilterGM;)
107 } 107 }
OLDNEW
« no previous file with comments | « gm/bigrrectaaeffect.cpp ('k') | gm/bitmapfilters.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698