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

Side by Side Diff: src/effects/SkLayerRasterizer.cpp

Issue 312553006: remove SkBounder -- unused and unloved (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: address review comments Created 6 years, 6 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/core/SkMaskFilter.cpp ('k') | src/gpu/SkGpuDevice.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkLayerRasterizer.h" 10 #include "SkLayerRasterizer.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 translatedMatrix.postTranslate(-SkIntToScalar(mask->fBounds.fLeft), 139 translatedMatrix.postTranslate(-SkIntToScalar(mask->fBounds.fLeft),
140 -SkIntToScalar(mask->fBounds.fTop)); 140 -SkIntToScalar(mask->fBounds.fTop));
141 141
142 device.installMaskPixels(*mask); 142 device.installMaskPixels(*mask);
143 143
144 draw.fBitmap = &device; 144 draw.fBitmap = &device;
145 draw.fMatrix = &drawMatrix; 145 draw.fMatrix = &drawMatrix;
146 draw.fRC = &rectClip; 146 draw.fRC = &rectClip;
147 draw.fClip = &rectClip.bwRgn(); 147 draw.fClip = &rectClip.bwRgn();
148 // we set the matrixproc in the loop, as the matrix changes each time (p otentially) 148 // we set the matrixproc in the loop, as the matrix changes each time (p otentially)
149 draw.fBounder = NULL;
150 149
151 SkDeque::F2BIter iter(*fLayers); 150 SkDeque::F2BIter iter(*fLayers);
152 SkLayerRasterizer_Rec* rec; 151 SkLayerRasterizer_Rec* rec;
153 152
154 while ((rec = (SkLayerRasterizer_Rec*)iter.next()) != NULL) { 153 while ((rec = (SkLayerRasterizer_Rec*)iter.next()) != NULL) {
155 drawMatrix = translatedMatrix; 154 drawMatrix = translatedMatrix;
156 drawMatrix.preTranslate(rec->fOffset.fX, rec->fOffset.fY); 155 drawMatrix.preTranslate(rec->fOffset.fX, rec->fOffset.fY);
157 draw.drawPath(path, rec->fPaint); 156 draw.drawPath(path, rec->fPaint);
158 } 157 }
159 } 158 }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 SkDEBUGCODE(count++); 227 SkDEBUGCODE(count++);
229 SkLayerRasterizer_Rec* recCopy = static_cast<SkLayerRasterizer_Rec*>(lay ers->push_back()); 228 SkLayerRasterizer_Rec* recCopy = static_cast<SkLayerRasterizer_Rec*>(lay ers->push_back());
230 SkNEW_PLACEMENT_ARGS(&recCopy->fPaint, SkPaint, (recOrig->fPaint)); 229 SkNEW_PLACEMENT_ARGS(&recCopy->fPaint, SkPaint, (recOrig->fPaint));
231 recCopy->fOffset = recOrig->fOffset; 230 recCopy->fOffset = recOrig->fOffset;
232 } 231 }
233 SkASSERT(fLayers->count() == count); 232 SkASSERT(fLayers->count() == count);
234 SkASSERT(layers->count() == count); 233 SkASSERT(layers->count() == count);
235 SkLayerRasterizer* rasterizer = SkNEW_ARGS(SkLayerRasterizer, (layers)); 234 SkLayerRasterizer* rasterizer = SkNEW_ARGS(SkLayerRasterizer, (layers));
236 return rasterizer; 235 return rasterizer;
237 } 236 }
OLDNEW
« no previous file with comments | « src/core/SkMaskFilter.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698