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

Side by Side Diff: src/gpu/GrClipMaskManager.cpp

Issue 1432503003: Comments Style: s/skbug.com/bug.skia.org/ (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: include Created 5 years, 1 month 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/gpu/GrBufferAllocPool.cpp ('k') | src/gpu/GrResourceProvider.h » ('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 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
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/GrBufferAllocPool.cpp ('k') | src/gpu/GrResourceProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698