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

Side by Side Diff: src/gpu/batches/GrDrawVerticesBatch.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/GrDrawAtlasBatch.cpp ('k') | src/gpu/batches/GrDrawVerticesBatch.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 GrDrawVerticesBatch_DEFINED 8 #ifndef GrDrawVerticesBatch_DEFINED
9 #define GrDrawVerticesBatch_DEFINED 9 #define GrDrawVerticesBatch_DEFINED
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 bool usesLocalCoords() const { return fBatch.fUsesLocalCoords; } 68 bool usesLocalCoords() const { return fBatch.fUsesLocalCoords; }
69 bool colorIgnored() const { return fBatch.fColorIgnored; } 69 bool colorIgnored() const { return fBatch.fColorIgnored; }
70 const SkMatrix& viewMatrix() const { return fBatch.fViewMatrix; } 70 const SkMatrix& viewMatrix() const { return fBatch.fViewMatrix; }
71 bool hasColors() const { return fBatch.fHasColors; } 71 bool hasColors() const { return fBatch.fHasColors; }
72 bool hasIndices() const { return fBatch.fHasIndices; } 72 bool hasIndices() const { return fBatch.fHasIndices; }
73 bool hasLocalCoords() const { return fBatch.fHasLocalCoords; } 73 bool hasLocalCoords() const { return fBatch.fHasLocalCoords; }
74 int vertexCount() const { return fBatch.fVertexCount; } 74 int vertexCount() const { return fBatch.fVertexCount; }
75 int indexCount() const { return fBatch.fIndexCount; } 75 int indexCount() const { return fBatch.fIndexCount; }
76 bool coverageIgnored() const { return fBatch.fCoverageIgnored; } 76 bool coverageIgnored() const { return fBatch.fCoverageIgnored; }
77 77
78 bool onCombineIfPossible(GrBatch* t) override; 78 bool onCombineIfPossible(GrBatch* t, const GrCaps&) override;
79 79
80 struct BatchTracker { 80 struct BatchTracker {
81 GrPrimitiveType fPrimitiveType; 81 GrPrimitiveType fPrimitiveType;
82 SkMatrix fViewMatrix; 82 SkMatrix fViewMatrix;
83 GrColor fColor; 83 GrColor fColor;
84 bool fUsesLocalCoords; 84 bool fUsesLocalCoords;
85 bool fColorIgnored; 85 bool fColorIgnored;
86 bool fCoverageIgnored; 86 bool fCoverageIgnored;
87 bool fHasColors; 87 bool fHasColors;
88 bool fHasIndices; 88 bool fHasIndices;
89 bool fHasLocalCoords; 89 bool fHasLocalCoords;
90 int fVertexCount; 90 int fVertexCount;
91 int fIndexCount; 91 int fIndexCount;
92 }; 92 };
93 93
94 BatchTracker fBatch; 94 BatchTracker fBatch;
95 SkSTArray<1, Geometry, true> fGeoData; 95 SkSTArray<1, Geometry, true> fGeoData;
96 }; 96 };
97 97
98 #endif 98 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrDrawAtlasBatch.cpp ('k') | src/gpu/batches/GrDrawVerticesBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698