| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |