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

Side by Side Diff: bench/SKPBench.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 | « bench/SKPAnimationBench.cpp ('k') | bench/SkipZeroesBench.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 2014 Google Inc. 2 * Copyright 2014 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 "SKPBench.h" 8 #include "SKPBench.h"
9 #include "SkCommandLineFlags.h" 9 #include "SkCommandLineFlags.h"
10 #include "SkMultiPictureDraw.h" 10 #include "SkMultiPictureDraw.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 for (int j = 0; j < fTileRects.count(); ++j) { 132 for (int j = 0; j < fTileRects.count(); ++j) {
133 fSurfaces[j]->getCanvas()->flush(); 133 fSurfaces[j]->getCanvas()->flush();
134 } 134 }
135 } 135 }
136 136
137 void SKPBench::drawPicture() { 137 void SKPBench::drawPicture() {
138 for (int j = 0; j < fTileRects.count(); ++j) { 138 for (int j = 0; j < fTileRects.count(); ++j) {
139 const SkMatrix trans = SkMatrix::MakeTrans(-fTileRects[j].fLeft / fScale , 139 const SkMatrix trans = SkMatrix::MakeTrans(-fTileRects[j].fLeft / fScale ,
140 -fTileRects[j].fTop / fScale) ; 140 -fTileRects[j].fTop / fScale) ;
141 fSurfaces[j]->getCanvas()->drawPicture(fPic, &trans, NULL); 141 fSurfaces[j]->getCanvas()->drawPicture(fPic, &trans, nullptr);
142 } 142 }
143 143
144 for (int j = 0; j < fTileRects.count(); ++j) { 144 for (int j = 0; j < fTileRects.count(); ++j) {
145 fSurfaces[j]->getCanvas()->flush(); 145 fSurfaces[j]->getCanvas()->flush();
146 } 146 }
147 } 147 }
OLDNEW
« no previous file with comments | « bench/SKPAnimationBench.cpp ('k') | bench/SkipZeroesBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698