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

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

Issue 1457373003: Add more batch information printouts (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 typedef typename Impl::Geometry Geometry; 47 typedef typename Impl::Geometry Geometry;
48 48
49 static GrTInstanceBatch* Create() { return new GrTInstanceBatch; } 49 static GrTInstanceBatch* Create() { return new GrTInstanceBatch; }
50 50
51 const char* name() const override { return Impl::Name(); } 51 const char* name() const override { return Impl::Name(); }
52 52
53 SkString dumpInfo() const override { 53 SkString dumpInfo() const override {
54 SkString str; 54 SkString str;
55 for (int i = 0; i < fGeoData.count(); ++i) { 55 for (int i = 0; i < fGeoData.count(); ++i) {
56 str.append(Impl::DumpInfo(fGeoData[i])); 56 str.append(Impl::DumpInfo(fGeoData[i], i));
57 } 57 }
58 str.append(INHERITED::dumpInfo()); 58 str.append(INHERITED::dumpInfo());
59 return str; 59 return str;
60 } 60 }
61 61
62 void getInvariantOutputColor(GrInitInvariantOutput* out) const override { 62 void getInvariantOutputColor(GrInitInvariantOutput* out) const override {
63 // When this is called on a batch, there is only one geometry bundle 63 // When this is called on a batch, there is only one geometry bundle
64 out->setKnownFourComponents(fGeoData[0].fColor); 64 out->setKnownFourComponents(fGeoData[0].fColor);
65 } 65 }
66 66
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 return true; 144 return true;
145 } 145 }
146 146
147 GrPipelineOptimizations fOpts; 147 GrPipelineOptimizations fOpts;
148 SkSTArray<1, Geometry, true> fGeoData; 148 SkSTArray<1, Geometry, true> fGeoData;
149 149
150 typedef GrVertexBatch INHERITED; 150 typedef GrVertexBatch INHERITED;
151 }; 151 };
152 152
153 #endif 153 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrNonAAFillRectBatch.cpp ('k') | src/gpu/effects/GrXfermodeFragmentProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698