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

Side by Side Diff: src/gpu/batches/GrDrawAtlasBatch.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/GrBatch.h ('k') | src/gpu/batches/GrDrawAtlasBatch.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 GrDrawAtlasBatch_DEFINED 8 #ifndef GrDrawAtlasBatch_DEFINED
9 #define GrDrawAtlasBatch_DEFINED 9 #define GrDrawAtlasBatch_DEFINED
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 GrDrawAtlasBatch(const Geometry& geometry, const SkMatrix& viewMatrix, int s priteCount, 49 GrDrawAtlasBatch(const Geometry& geometry, const SkMatrix& viewMatrix, int s priteCount,
50 const SkRSXform* xforms, const SkRect* rects, const SkColor * colors); 50 const SkRSXform* xforms, const SkRect* rects, const SkColor * colors);
51 51
52 GrColor color() const { return fColor; } 52 GrColor color() const { return fColor; }
53 bool colorIgnored() const { return fColorIgnored; } 53 bool colorIgnored() const { return fColorIgnored; }
54 const SkMatrix& viewMatrix() const { return fViewMatrix; } 54 const SkMatrix& viewMatrix() const { return fViewMatrix; }
55 bool hasColors() const { return fHasColors; } 55 bool hasColors() const { return fHasColors; }
56 int quadCount() const { return fQuadCount; } 56 int quadCount() const { return fQuadCount; }
57 bool coverageIgnored() const { return fCoverageIgnored; } 57 bool coverageIgnored() const { return fCoverageIgnored; }
58 58
59 bool onCombineIfPossible(GrBatch* t) override; 59 bool onCombineIfPossible(GrBatch* t, const GrCaps&) override;
60 SkSTArray<1, Geometry, true> fGeoData; 60 SkSTArray<1, Geometry, true> fGeoData;
61 61
62 SkMatrix fViewMatrix; 62 SkMatrix fViewMatrix;
63 GrColor fColor; 63 GrColor fColor;
64 int fQuadCount; 64 int fQuadCount;
65 bool fColorIgnored; 65 bool fColorIgnored;
66 bool fCoverageIgnored; 66 bool fCoverageIgnored;
67 bool fHasColors; 67 bool fHasColors;
68 }; 68 };
69 69
70 #endif 70 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrBatch.h ('k') | src/gpu/batches/GrDrawAtlasBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698