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

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

Issue 1584933002: Refactor to use GrWrapTextureInBitmap more (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix no-gpu build Created 4 years, 11 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/effects/SkMorphologyImageFilter.cpp ('k') | src/gpu/GrLayerHoister.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 The Android Open Source Project 2 * Copyright 2013 The Android Open Source Project
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 "SkXfermodeImageFilter.h" 8 #include "SkXfermodeImageFilter.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkDevice.h" 10 #include "SkDevice.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 if (!drawContext) { 205 if (!drawContext) {
206 return false; 206 return false;
207 } 207 }
208 208
209 SkMatrix matrix; 209 SkMatrix matrix;
210 matrix.setTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top ())); 210 matrix.setTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top ()));
211 drawContext->drawRect(GrClip::WideOpen(), paint, matrix, SkRect::Make(bounds )); 211 drawContext->drawRect(GrClip::WideOpen(), paint, matrix, SkRect::Make(bounds ));
212 212
213 offset->fX = bounds.left(); 213 offset->fX = bounds.left();
214 offset->fY = bounds.top(); 214 offset->fY = bounds.top();
215 WrapTexture(dst, bounds.width(), bounds.height(), result); 215 GrWrapTextureInBitmap(dst, bounds.width(), bounds.height(), false, result);
216 return true; 216 return true;
217 } 217 }
218 218
219 #endif 219 #endif
220 220
OLDNEW
« no previous file with comments | « src/effects/SkMorphologyImageFilter.cpp ('k') | src/gpu/GrLayerHoister.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698