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

Side by Side Diff: src/gpu/batches/GrDrawPathBatch.h

Issue 1969693003: Revert of Separate user and raw stencil settings (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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 | « src/gpu/batches/GrDefaultPathRenderer.cpp ('k') | src/gpu/batches/GrMSAAPathRenderer.cpp » ('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 2015 Google Inc. 2 * Copyright 2015 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 #ifndef GrDrawPathBatch_DEFINED 8 #ifndef GrDrawPathBatch_DEFINED
9 #define GrDrawPathBatch_DEFINED 9 #define GrDrawPathBatch_DEFINED
10 10
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 void computePipelineOptimizations(GrInitInvariantOutput* color, 22 void computePipelineOptimizations(GrInitInvariantOutput* color,
23 GrInitInvariantOutput* coverage, 23 GrInitInvariantOutput* coverage,
24 GrBatchToXPOverrides* overrides) const ove rride { 24 GrBatchToXPOverrides* overrides) const ove rride {
25 color->setKnownFourComponents(fColor); 25 color->setKnownFourComponents(fColor);
26 coverage->setKnownSingleComponent(0xff); 26 coverage->setKnownSingleComponent(0xff);
27 } 27 }
28 28
29 GrPathRendering::FillType fillType() const { return fFillType; } 29 GrPathRendering::FillType fillType() const { return fFillType; }
30 30
31 void setStencilSettings(const GrUserStencilSettings& stencil, bool hasStenci lClip, 31 void setStencilSettings(const GrStencilSettings& stencil) { fStencilSettings = stencil; }
32 int numStencilBits) {
33 fStencilSettings.reset(stencil, hasStencilClip, numStencilBits);
34 }
35 32
36 protected: 33 protected:
37 GrDrawPathBatchBase(uint32_t classID, const SkMatrix& viewMatrix, GrColor in itialColor, 34 GrDrawPathBatchBase(uint32_t classID, const SkMatrix& viewMatrix, GrColor in itialColor,
38 GrPathRendering::FillType fill) 35 GrPathRendering::FillType fill)
39 : INHERITED(classID) 36 : INHERITED(classID)
40 , fViewMatrix(viewMatrix) 37 , fViewMatrix(viewMatrix)
41 , fColor(initialColor) 38 , fColor(initialColor)
42 , fFillType(fill) {} 39 , fFillType(fill) {}
43 40
44 const GrStencilSettings& stencilSettings() const { return fStencilSettings; } 41 const GrStencilSettings& stencilSettings() const { return fStencilSettings; }
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 200
204 PendingPathRange fPathRange; 201 PendingPathRange fPathRange;
205 DrawList fDraws; 202 DrawList fDraws;
206 int fTotalPathCount; 203 int fTotalPathCount;
207 SkScalar fScale; 204 SkScalar fScale;
208 205
209 typedef GrDrawPathBatchBase INHERITED; 206 typedef GrDrawPathBatchBase INHERITED;
210 }; 207 };
211 208
212 #endif 209 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrDefaultPathRenderer.cpp ('k') | src/gpu/batches/GrMSAAPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698