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

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

Issue 1541903002: added support for PLS path rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix for ASAN failure Created 4 years, 10 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/GrPLSPathRenderer.cpp ('k') | src/gpu/batches/GrTessellatingPathRenderer.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 GrTInstanceBatch_DEFINED 8 #ifndef GrTInstanceBatch_DEFINED
9 #define GrTInstanceBatch_DEFINED 9 #define GrTInstanceBatch_DEFINED
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 str.append(INHERITED::dumpInfo()); 58 str.append(INHERITED::dumpInfo());
59 return str; 59 return str;
60 } 60 }
61 61
62 void computePipelineOptimizations(GrInitInvariantOutput* color, 62 void computePipelineOptimizations(GrInitInvariantOutput* color,
63 GrInitInvariantOutput* coverage, 63 GrInitInvariantOutput* coverage,
64 GrBatchToXPOverrides* overrides) const ove rride { 64 GrBatchToXPOverrides* overrides) const ove rride {
65 // When this is called on a batch, there is only one geometry bundle 65 // When this is called on a batch, there is only one geometry bundle
66 color->setKnownFourComponents(fGeoData[0].fColor); 66 color->setKnownFourComponents(fGeoData[0].fColor);
67 Impl::InitInvariantOutputCoverage(coverage); 67 Impl::InitInvariantOutputCoverage(coverage);
68 overrides->fUsePLSDstRead = false;
69 } 68 }
70 69
71 void initBatchTracker(const GrXPOverridesForBatch& overrides) override { 70 void initBatchTracker(const GrXPOverridesForBatch& overrides) override {
72 overrides.getOverrideColorIfSet(&fGeoData[0].fColor); 71 overrides.getOverrideColorIfSet(&fGeoData[0].fColor);
73 fOverrides = overrides; 72 fOverrides = overrides;
74 } 73 }
75 74
76 SkSTArray<1, Geometry, true>* geoData() { return &fGeoData; } 75 SkSTArray<1, Geometry, true>* geoData() { return &fGeoData; }
77 76
78 // After seeding, the client should call init() so the Batch can initialize itself 77 // After seeding, the client should call init() so the Batch can initialize itself
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 return true; 144 return true;
146 } 145 }
147 146
148 GrXPOverridesForBatch fOverrides; 147 GrXPOverridesForBatch fOverrides;
149 SkSTArray<1, Geometry, true> fGeoData; 148 SkSTArray<1, Geometry, true> fGeoData;
150 149
151 typedef GrVertexBatch INHERITED; 150 typedef GrVertexBatch INHERITED;
152 }; 151 };
153 152
154 #endif 153 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrPLSPathRenderer.cpp ('k') | src/gpu/batches/GrTessellatingPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698