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

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

Issue 2201133002: Implement GPU occluded blur mask filter (Closed) Base URL: https://skia.googlesource.com/skia.git@occluded-blur
Patch Set: update to ToT 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/effects/SkBlurMaskFilter.cpp ('k') | src/gpu/SkGpuDevice_drawTexture.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 2011 Google Inc. 2 * Copyright 2011 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 if (draw.fRC->quickReject(finalIRect)) { 435 if (draw.fRC->quickReject(finalIRect)) {
436 // clipped out 436 // clipped out
437 return; 437 return;
438 } 438 }
439 if (paint.getMaskFilter()->directFilterRRectMaskGPU(fContext , 439 if (paint.getMaskFilter()->directFilterRRectMaskGPU(fContext ,
440 fDrawCon text.get(), 440 fDrawCon text.get(),
441 &grPaint , 441 &grPaint ,
442 fClip, 442 fClip,
443 *draw.fM atrix, 443 *draw.fM atrix,
444 style.st rokeRec(), 444 style.st rokeRec(),
445 rrect,
445 devRRect )) { 446 devRRect )) {
446 return; 447 return;
447 } 448 }
448 } 449 }
449 450
450 } 451 }
451 } 452 }
452 } 453 }
453 454
454 if (paint.getMaskFilter() || style.pathEffect()) { 455 if (paint.getMaskFilter() || style.pathEffect()) {
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1753 } 1754 }
1754 1755
1755 SkImageFilterCache* SkGpuDevice::getImageFilterCache() { 1756 SkImageFilterCache* SkGpuDevice::getImageFilterCache() {
1756 ASSERT_SINGLE_OWNER 1757 ASSERT_SINGLE_OWNER
1757 // We always return a transient cache, so it is freed after each 1758 // We always return a transient cache, so it is freed after each
1758 // filter traversal. 1759 // filter traversal.
1759 return SkImageFilterCache::Create(kDefaultImageFilterCacheSize); 1760 return SkImageFilterCache::Create(kDefaultImageFilterCacheSize);
1760 } 1761 }
1761 1762
1762 #endif 1763 #endif
OLDNEW
« no previous file with comments | « src/effects/SkBlurMaskFilter.cpp ('k') | src/gpu/SkGpuDevice_drawTexture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698