| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 "GrClipMaskManager.h" | 8 #include "GrClipMaskManager.h" |
| 9 #include "GrCaps.h" | 9 #include "GrCaps.h" |
| 10 #include "GrDrawingManager.h" | 10 #include "GrDrawingManager.h" |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 for (GrReducedClip::ElementList::Iter iter = elements.headIter(); iter.get()
; iter.next()) { | 587 for (GrReducedClip::ElementList::Iter iter = elements.headIter(); iter.get()
; iter.next()) { |
| 588 const Element* element = iter.get(); | 588 const Element* element = iter.get(); |
| 589 SkRegion::Op op = element->getOp(); | 589 SkRegion::Op op = element->getOp(); |
| 590 bool invert = element->isInverseFilled(); | 590 bool invert = element->isInverseFilled(); |
| 591 if (invert || SkRegion::kIntersect_Op == op || SkRegion::kReverseDiffere
nce_Op == op) { | 591 if (invert || SkRegion::kIntersect_Op == op || SkRegion::kReverseDiffere
nce_Op == op) { |
| 592 | 592 |
| 593 GrPathRenderer* pr = GetPathRenderer(this->getContext(), | 593 GrPathRenderer* pr = GetPathRenderer(this->getContext(), |
| 594 texture, translate, element); | 594 texture, translate, element); |
| 595 if (Element::kRect_Type != element->getType() && !pr) { | 595 if (Element::kRect_Type != element->getType() && !pr) { |
| 596 // useSWOnlyPath should now filter out all cases where gpu-side
mask merging would | 596 // useSWOnlyPath should now filter out all cases where gpu-side
mask merging would |
| 597 // be performed (i.e., pr would be NULL for a non-rect path). Se
e skbug.com/4519 | 597 // be performed (i.e., pr would be NULL for a non-rect path). Se
e https://bug.skia.org/4519 |
| 598 // for rationale and details. | 598 // for rationale and details. |
| 599 SkASSERT(0); | 599 SkASSERT(0); |
| 600 continue; | 600 continue; |
| 601 } | 601 } |
| 602 | 602 |
| 603 { | 603 { |
| 604 GrPipelineBuilder pipelineBuilder; | 604 GrPipelineBuilder pipelineBuilder; |
| 605 | 605 |
| 606 pipelineBuilder.setClip(clip); | 606 pipelineBuilder.setClip(clip); |
| 607 pipelineBuilder.setRenderTarget(texture->asRenderTarget()); | 607 pipelineBuilder.setRenderTarget(texture->asRenderTarget()); |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1096 | 1096 |
| 1097 //////////////////////////////////////////////////////////////////////////////// | 1097 //////////////////////////////////////////////////////////////////////////////// |
| 1098 | 1098 |
| 1099 void GrClipMaskManager::adjustPathStencilParams(const GrStencilAttachment* stenc
ilAttachment, | 1099 void GrClipMaskManager::adjustPathStencilParams(const GrStencilAttachment* stenc
ilAttachment, |
| 1100 GrStencilSettings* settings) { | 1100 GrStencilSettings* settings) { |
| 1101 if (stencilAttachment) { | 1101 if (stencilAttachment) { |
| 1102 int stencilBits = stencilAttachment->bits(); | 1102 int stencilBits = stencilAttachment->bits(); |
| 1103 this->adjustStencilParams(settings, fClipMode, stencilBits); | 1103 this->adjustStencilParams(settings, fClipMode, stencilBits); |
| 1104 } | 1104 } |
| 1105 } | 1105 } |
| OLD | NEW |