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

Side by Side Diff: src/gpu/SkGpuDevice_drawTexture.cpp

Issue 2236493002: Revert of Create blurred RRect mask on GPU (rather than uploading it) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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/gpu/SkGpuDevice.cpp ('k') | tests/BlurTest.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 "SkGpuDevice.h" 8 #include "SkGpuDevice.h"
9 9
10 #include "GrBlurUtils.h" 10 #include "GrBlurUtils.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 return; 219 return;
220 } 220 }
221 221
222 if (!mf) { 222 if (!mf) {
223 fDrawContext->drawRect(clip, grPaint, viewMatrix, clippedDstRect); 223 fDrawContext->drawRect(clip, grPaint, viewMatrix, clippedDstRect);
224 return; 224 return;
225 } 225 }
226 226
227 // First see if we can do the draw + mask filter direct to the dst. 227 // First see if we can do the draw + mask filter direct to the dst.
228 SkStrokeRec rec(SkStrokeRec::kFill_InitStyle); 228 SkStrokeRec rec(SkStrokeRec::kFill_InitStyle);
229 if (mf->directFilterRRectMaskGPU(fContext, 229 if (mf->directFilterRRectMaskGPU(fContext->textureProvider(),
230 fDrawContext.get(), 230 fDrawContext.get(),
231 &grPaint, 231 &grPaint,
232 clip, 232 clip,
233 viewMatrix, 233 viewMatrix,
234 rec, 234 rec,
235 SkRRect::MakeRect(clippedDstRect))) { 235 SkRRect::MakeRect(clippedDstRect))) {
236 return; 236 return;
237 } 237 }
238 SkPath rectPath; 238 SkPath rectPath;
239 rectPath.addRect(clippedDstRect); 239 rectPath.addRect(clippedDstRect);
240 rectPath.setIsVolatile(true); 240 rectPath.setIsVolatile(true);
241 GrBlurUtils::drawPathWithMaskFilter(this->context(), fDrawContext.get(), fCl ip, 241 GrBlurUtils::drawPathWithMaskFilter(this->context(), fDrawContext.get(), fCl ip,
242 rectPath, &grPaint, viewMatrix, mf, GrSt yle::SimpleFill(), 242 rectPath, &grPaint, viewMatrix, mf, GrSt yle::SimpleFill(),
243 true); 243 true);
244 } 244 }
OLDNEW
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | tests/BlurTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698