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

Unified Diff: src/gpu/GrClipMaskManager.cpp

Issue 989443003: Remove rect clip type from grclip. (Closed) Base URL: https://skia.googlesource.com/skia.git@clipfix
Patch Set: Created 5 years, 9 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 | « src/gpu/GrClip.cpp ('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 f0eb2477bd11605164a34cbfbe4601717bcc76d9..b58c56566eda169770e467d4bd018f49ad34c786 100644
--- a/src/gpu/GrClipMaskManager.cpp
+++ b/src/gpu/GrClipMaskManager.cpp
@@ -244,16 +244,6 @@ bool GrClipMaskManager::setupClipping(GrPipelineBuilder* pipelineBuilder,
scissorState->set(clip.irect());
this->setPipelineBuilderStencil(pipelineBuilder, ars);
return true;
- case GrClip::kRect_ClipType: {
- const SkRect& rect = clip.rect();
- SkIRect scissor;
- scissor.fLeft = SkScalarRoundToInt(rect.fLeft);
- scissor.fTop = SkScalarRoundToInt(rect.fTop);
- scissor.fRight = SkScalarRoundToInt(rect.fRight);
- scissor.fBottom = SkScalarRoundToInt(rect.fBottom);
- scissorState->set(scissor);
- this->setPipelineBuilderStencil(pipelineBuilder, ars);
- } return true;
case GrClip::kClipStack_ClipType: {
clipSpaceRTIBounds.offset(clip.origin());
GrReducedClip::ReduceClipStack(*clip.clipStack(),
« no previous file with comments | « src/gpu/GrClip.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698