diff options
author | 2016-05-13 10:25:00 -0700 | |
---|---|---|
committer | 2016-05-13 10:25:00 -0700 | |
commit | 846c051a4800b3cea341a0195db24297d6d9047f (patch) | |
tree | 7dadb5396d2dad36a45686c9c10ada5bc2e76f01 /src/gpu/effects | |
parent | 670f01f2fc88f02ec9a6f1b47af29daeadc3b301 (diff) |
Convert GrClip to an abstract base class
Converts GrClip to an abstract base class and adds a "GrFixedClip"
implementation. GrFixedClip denotes a clip implemented with fixed-
function hardware. GrFixedClip allows us to remove the stateful
"fClipMode" member from GrClipMaskManager, and in the future will
be able to nicely encapsulate window rectangles.
After this change GrClipMaskManager is just a wrapper around
GrDrawTarget. We may want to consider removing it altogether.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1971343002
Review-Url: https://codereview.chromium.org/1971343002
Diffstat (limited to 'src/gpu/effects')
-rw-r--r-- | src/gpu/effects/GrConfigConversionEffect.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/effects/GrConfigConversionEffect.cpp b/src/gpu/effects/GrConfigConversionEffect.cpp index 6b43606bb5..99a4884f0f 100644 --- a/src/gpu/effects/GrConfigConversionEffect.cpp +++ b/src/gpu/effects/GrConfigConversionEffect.cpp @@ -232,7 +232,7 @@ void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context break; } - readDrawContext->fillRectToRect(GrClip::WideOpen(), + readDrawContext->fillRectToRect(GrNoClip(), paint1, SkMatrix::I(), kDstRect, @@ -249,7 +249,7 @@ void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context failed = true; break; } - tempDrawContext->fillRectToRect(GrClip::WideOpen(), + tempDrawContext->fillRectToRect(GrNoClip(), paint2, SkMatrix::I(), kDstRect, @@ -264,7 +264,7 @@ void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context break; } - readDrawContext->fillRectToRect(GrClip::WideOpen(), + readDrawContext->fillRectToRect(GrNoClip(), paint3, SkMatrix::I(), kDstRect, |