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

Side by Side Diff: src/gpu/SkGpuDevice.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/effects/SkGpuBlurUtils.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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 if (paint.getMaskFilter()->canFilterMaskGPU(devRRect, 429 if (paint.getMaskFilter()->canFilterMaskGPU(devRRect,
430 draw.fRC->getBounds( ), 430 draw.fRC->getBounds( ),
431 *draw.fMatrix, 431 *draw.fMatrix,
432 &maskRect)) { 432 &maskRect)) {
433 SkIRect finalIRect; 433 SkIRect finalIRect;
434 maskRect.roundOut(&finalIRect); 434 maskRect.roundOut(&finalIRect);
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 ->textureProvider(),
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 devRRect )) { 445 devRRect )) {
446 return; 446 return;
447 } 447 }
448 } 448 }
449 449
(...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after
1753 } 1753 }
1754 1754
1755 SkImageFilterCache* SkGpuDevice::getImageFilterCache() { 1755 SkImageFilterCache* SkGpuDevice::getImageFilterCache() {
1756 ASSERT_SINGLE_OWNER 1756 ASSERT_SINGLE_OWNER
1757 // We always return a transient cache, so it is freed after each 1757 // We always return a transient cache, so it is freed after each
1758 // filter traversal. 1758 // filter traversal.
1759 return SkImageFilterCache::Create(kDefaultImageFilterCacheSize); 1759 return SkImageFilterCache::Create(kDefaultImageFilterCacheSize);
1760 } 1760 }
1761 1761
1762 #endif 1762 #endif
OLDNEW
« no previous file with comments | « src/effects/SkGpuBlurUtils.cpp ('k') | src/gpu/SkGpuDevice_drawTexture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698