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

Unified Diff: src/gpu/GrClipMaskManager.cpp

Issue 951653002: Enable rect clips (Closed) Base URL: https://skia.googlesource.com/skia.git@dt-on-down
Patch Set: rebase Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/gpu/GrClip.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrClipMaskManager.cpp
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp
index 4d9612534d6973a9d274725c8c69672c92b0e1a1..b28b75cefb9f8b18210c87c06f8f9ab0f9eb5711 100644
--- a/src/gpu/GrClipMaskManager.cpp
+++ b/src/gpu/GrClipMaskManager.cpp
@@ -228,8 +228,7 @@ bool GrClipMaskManager::setupClipping(GrPipelineBuilder* pipelineBuilder,
SkIRect clipSpaceRTIBounds = SkIRect::MakeWH(rt->width(), rt->height());
const GrClip& clip = pipelineBuilder->clip();
// TODO we shouldn't be ignoring the clip mask manager's clip. This is temporary.
- bool ignoreClip = clip.isWideOpen(clipSpaceRTIBounds) ||
- GrClip::kIRect_ClipType == clip.clipType();
+ bool ignoreClip = clip.isWideOpen(clipSpaceRTIBounds);
if (!ignoreClip) {
// The clip mask manager always draws with a single IRect so we special case that logic here
if (GrClip::kIRect_ClipType == clip.clipType()) {
« no previous file with comments | « include/gpu/GrClip.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698