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

Side by Side Diff: src/gpu/batches/GrAAStrokeRectBatch.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/GrAAFillRectBatch.cpp ('k') | src/gpu/batches/GrAAStrokeRectBatch.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 GrAAStrokeRectBatch_DEFINED 8 #ifndef GrAAStrokeRectBatch_DEFINED
9 #define GrAAStrokeRectBatch_DEFINED 9 #define GrAAStrokeRectBatch_DEFINED
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 bool miterStroke); 71 bool miterStroke);
72 72
73 GrColor color() const { return fBatch.fColor; } 73 GrColor color() const { return fBatch.fColor; }
74 bool usesLocalCoords() const { return fBatch.fUsesLocalCoords; } 74 bool usesLocalCoords() const { return fBatch.fUsesLocalCoords; }
75 bool canTweakAlphaForCoverage() const { return fBatch.fCanTweakAlphaForCover age; } 75 bool canTweakAlphaForCoverage() const { return fBatch.fCanTweakAlphaForCover age; }
76 bool colorIgnored() const { return fBatch.fColorIgnored; } 76 bool colorIgnored() const { return fBatch.fColorIgnored; }
77 const SkMatrix& viewMatrix() const { return fBatch.fViewMatrix; } 77 const SkMatrix& viewMatrix() const { return fBatch.fViewMatrix; }
78 bool miterStroke() const { return fBatch.fMiterStroke; } 78 bool miterStroke() const { return fBatch.fMiterStroke; }
79 bool coverageIgnored() const { return fBatch.fCoverageIgnored; } 79 bool coverageIgnored() const { return fBatch.fCoverageIgnored; }
80 80
81 bool onCombineIfPossible(GrBatch* t) override; 81 bool onCombineIfPossible(GrBatch* t, const GrCaps&) override;
82 82
83 void generateAAStrokeRectGeometry(void* vertices, 83 void generateAAStrokeRectGeometry(void* vertices,
84 size_t offset, 84 size_t offset,
85 size_t vertexStride, 85 size_t vertexStride,
86 int outerVertexNum, 86 int outerVertexNum,
87 int innerVertexNum, 87 int innerVertexNum,
88 GrColor color, 88 GrColor color,
89 const SkRect& devOutside, 89 const SkRect& devOutside,
90 const SkRect& devOutsideAssist, 90 const SkRect& devOutsideAssist,
91 const SkRect& devInside, 91 const SkRect& devInside,
92 bool miterStroke, 92 bool miterStroke,
93 bool tweakAlphaForCoverage) const; 93 bool tweakAlphaForCoverage) const;
94 94
95 struct BatchTracker { 95 struct BatchTracker {
96 SkMatrix fViewMatrix; 96 SkMatrix fViewMatrix;
97 GrColor fColor; 97 GrColor fColor;
98 bool fUsesLocalCoords; 98 bool fUsesLocalCoords;
99 bool fColorIgnored; 99 bool fColorIgnored;
100 bool fCoverageIgnored; 100 bool fCoverageIgnored;
101 bool fMiterStroke; 101 bool fMiterStroke;
102 bool fCanTweakAlphaForCoverage; 102 bool fCanTweakAlphaForCoverage;
103 }; 103 };
104 104
105 BatchTracker fBatch; 105 BatchTracker fBatch;
106 SkSTArray<1, Geometry, true> fGeoData; 106 SkSTArray<1, Geometry, true> fGeoData;
107 }; 107 };
108 108
109 109
110 #endif 110 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrAAFillRectBatch.cpp ('k') | src/gpu/batches/GrAAStrokeRectBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698