| OLD | NEW |
| 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 GrAAFillRectBatch_DEFINED | 8 #ifndef GrAAFillRectBatch_DEFINED |
| 9 #define GrAAFillRectBatch_DEFINED | 9 #define GrAAFillRectBatch_DEFINED |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 void getInvariantOutputColor(GrInitInvariantOutput* out) const override { | 32 void getInvariantOutputColor(GrInitInvariantOutput* out) const override { |
| 33 // When this is called on a batch, there is only one geometry bundle | 33 // When this is called on a batch, there is only one geometry bundle |
| 34 out->setKnownFourComponents(fGeoData[0].fColor); | 34 out->setKnownFourComponents(fGeoData[0].fColor); |
| 35 } | 35 } |
| 36 | 36 |
| 37 void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override { | 37 void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override { |
| 38 out->setUnknownSingleComponent(); | 38 out->setUnknownSingleComponent(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void initBatchTracker(const GrPipelineInfo& init) override; | 41 void initBatchTracker(const GrPipelineOptimizations&) override; |
| 42 | 42 |
| 43 void generateGeometry(GrBatchTarget* batchTarget) override; | 43 void generateGeometry(GrBatchTarget* batchTarget) override; |
| 44 | 44 |
| 45 SkSTArray<1, Geometry, true>* geoData() { return &fGeoData; } | 45 SkSTArray<1, Geometry, true>* geoData() { return &fGeoData; } |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 GrAAFillRectBatch(const Geometry& geometry) { | 48 GrAAFillRectBatch(const Geometry& geometry) { |
| 49 this->initClassID<GrAAFillRectBatch>(); | 49 this->initClassID<GrAAFillRectBatch>(); |
| 50 fGeoData.push_back(geometry); | 50 fGeoData.push_back(geometry); |
| 51 | 51 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 82 bool fColorIgnored; | 82 bool fColorIgnored; |
| 83 bool fCoverageIgnored; | 83 bool fCoverageIgnored; |
| 84 bool fCanTweakAlphaForCoverage; | 84 bool fCanTweakAlphaForCoverage; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 BatchTracker fBatch; | 87 BatchTracker fBatch; |
| 88 SkSTArray<1, Geometry, true> fGeoData; | 88 SkSTArray<1, Geometry, true> fGeoData; |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 #endif | 91 #endif |
| OLD | NEW |