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

Side by Side Diff: src/core/SkMaskFilter.cpp

Issue 140853008: Revert of Fast blurred rectangles on GPU (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 | « include/core/SkMaskFilter.h ('k') | src/effects/SkBlurMask.h » ('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 "SkMaskFilter.h" 10 #include "SkMaskFilter.h"
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 return false; 302 return false;
303 } 303 }
304 304
305 bool SkMaskFilter::canFilterMaskGPU(const SkRect& devBounds, 305 bool SkMaskFilter::canFilterMaskGPU(const SkRect& devBounds,
306 const SkIRect& clipBounds, 306 const SkIRect& clipBounds,
307 const SkMatrix& ctm, 307 const SkMatrix& ctm,
308 SkRect* maskRect) const { 308 SkRect* maskRect) const {
309 return false; 309 return false;
310 } 310 }
311 311
312 bool SkMaskFilter::directFilterMaskGPU(GrContext* context,
313 GrPaint* grp,
314 const SkStrokeRec& strokeRec,
315 const SkPath& path) const {
316 return false;
317 }
318
319 312
320 bool SkMaskFilter::filterMaskGPU(GrTexture* src, 313 bool SkMaskFilter::filterMaskGPU(GrTexture* src,
321 const SkMatrix& ctm, 314 const SkMatrix& ctm,
322 const SkRect& maskRect, 315 const SkRect& maskRect,
323 GrTexture** result, 316 GrTexture** result,
324 bool canOverwriteSrc) const { 317 bool canOverwriteSrc) const {
325 return false; 318 return false;
326 } 319 }
327 #endif 320 #endif
328 321
329 void SkMaskFilter::computeFastBounds(const SkRect& src, SkRect* dst) const { 322 void SkMaskFilter::computeFastBounds(const SkRect& src, SkRect* dst) const {
330 SkMask srcM, dstM; 323 SkMask srcM, dstM;
331 324
332 srcM.fImage = NULL; 325 srcM.fImage = NULL;
333 src.roundOut(&srcM.fBounds); 326 src.roundOut(&srcM.fBounds);
334 srcM.fRowBytes = 0; 327 srcM.fRowBytes = 0;
335 srcM.fFormat = SkMask::kA8_Format; 328 srcM.fFormat = SkMask::kA8_Format;
336 329
337 SkIPoint margin; // ignored 330 SkIPoint margin; // ignored
338 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { 331 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) {
339 dst->set(dstM.fBounds); 332 dst->set(dstM.fBounds);
340 } else { 333 } else {
341 dst->set(srcM.fBounds); 334 dst->set(srcM.fBounds);
342 } 335 }
343 } 336 }
OLDNEW
« no previous file with comments | « include/core/SkMaskFilter.h ('k') | src/effects/SkBlurMask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698