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

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

Issue 1274513005: Rename GrPipelineInfo to GrPipelineOptimizations (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 4 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/GrTessellatingPathRenderer.cpp ('k') | src/gpu/batches/GrAAFillRectBatch.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 GrAAFillRectBatch_DEFINED 8 #ifndef GrAAFillRectBatch_DEFINED
9 #define GrAAFillRectBatch_DEFINED 9 #define GrAAFillRectBatch_DEFINED
10 10
(...skipping 20 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrTessellatingPathRenderer.cpp ('k') | src/gpu/batches/GrAAFillRectBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698