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

Side by Side Diff: include/gpu/GrPaint.h

Issue 2355483002: abstract name of clipping ops, to transtion to a more restricted set (Closed)
Patch Set: no need for ifdef for globals Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « include/core/SkPictureAnalyzer.h ('k') | include/private/SkRecords.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef GrPaint_DEFINED 10 #ifndef GrPaint_DEFINED
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 93
94 void setXPFactory(sk_sp<GrXPFactory> xpFactory) { 94 void setXPFactory(sk_sp<GrXPFactory> xpFactory) {
95 fXPFactory = std::move(xpFactory); 95 fXPFactory = std::move(xpFactory);
96 } 96 }
97 97
98 void setPorterDuffXPFactory(SkXfermode::Mode mode) { 98 void setPorterDuffXPFactory(SkXfermode::Mode mode) {
99 fXPFactory = GrPorterDuffXPFactory::Make(mode); 99 fXPFactory = GrPorterDuffXPFactory::Make(mode);
100 } 100 }
101 101
102 void setCoverageSetOpXPFactory(SkRegion::Op regionOp, bool invertCoverage = false); 102 void setCoverageSetOpXPFactory(SkRegion::Op, bool invertCoverage = false);
103 103
104 /** 104 /**
105 * Appends an additional color processor to the color computation. 105 * Appends an additional color processor to the color computation.
106 */ 106 */
107 void addColorFragmentProcessor(sk_sp<GrFragmentProcessor> fp) { 107 void addColorFragmentProcessor(sk_sp<GrFragmentProcessor> fp) {
108 SkASSERT(fp); 108 SkASSERT(fp);
109 fUsesDistanceVectorField |= fp->usesDistanceVectorField(); 109 fUsesDistanceVectorField |= fp->usesDistanceVectorField();
110 fColorFragmentProcessors.push_back(std::move(fp)); 110 fColorFragmentProcessors.push_back(std::move(fp));
111 } 111 }
112 112
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 bool fAntiAlias; 188 bool fAntiAlias;
189 bool fDisableOutputConversionToSRGB; 189 bool fDisableOutputConversionToSRGB;
190 bool fAllowSRGBInputs; 190 bool fAllowSRGBInputs;
191 bool fUsesDistanceVectorField; 191 bool fUsesDistanceVectorField;
192 192
193 GrColor4f fColor; 193 GrColor4f fColor;
194 }; 194 };
195 195
196 #endif 196 #endif
OLDNEW
« no previous file with comments | « include/core/SkPictureAnalyzer.h ('k') | include/private/SkRecords.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698