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

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

Issue 1287973003: Check for xfer barriers in GrBatch, auto-issue barriers in GrGpu (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comment 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/batches/GrStrokeRectBatch.h ('k') | src/gpu/effects/GrCustomXfermode.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 GrTestBatch_DEFINED 8 #ifndef GrTestBatch_DEFINED
9 #define GrTestBatch_DEFINED 9 #define GrTestBatch_DEFINED
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 this->setBounds(bounds); 60 this->setBounds(bounds);
61 } 61 }
62 62
63 const GrGeometryProcessor* geometryProcessor() const { return fGeometryProce ssor; } 63 const GrGeometryProcessor* geometryProcessor() const { return fGeometryProce ssor; }
64 64
65 private: 65 private:
66 virtual Geometry* geoData(int index) = 0; 66 virtual Geometry* geoData(int index) = 0;
67 virtual const Geometry* geoData(int index) const = 0; 67 virtual const Geometry* geoData(int index) const = 0;
68 68
69 bool onCombineIfPossible(GrBatch* t) override { 69 bool onCombineIfPossible(GrBatch* t, const GrCaps&) override {
70 return false; 70 return false;
71 } 71 }
72 72
73 virtual void onGenerateGeometry(GrBatchTarget* batchTarget) = 0; 73 virtual void onGenerateGeometry(GrBatchTarget* batchTarget) = 0;
74 74
75 struct BatchTracker { 75 struct BatchTracker {
76 GrColor fColor; 76 GrColor fColor;
77 bool fUsesLocalCoords; 77 bool fUsesLocalCoords;
78 bool fColorIgnored; 78 bool fColorIgnored;
79 bool fCoverageIgnored; 79 bool fCoverageIgnored;
80 }; 80 };
81 81
82 SkAutoTUnref<const GrGeometryProcessor> fGeometryProcessor; 82 SkAutoTUnref<const GrGeometryProcessor> fGeometryProcessor;
83 BatchTracker fBatch; 83 BatchTracker fBatch;
84 }; 84 };
85 85
86 #endif 86 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrStrokeRectBatch.h ('k') | src/gpu/effects/GrCustomXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698