| Index: include/private/GrAuditTrail.h
|
| diff --git a/include/private/GrAuditTrail.h b/include/private/GrAuditTrail.h
|
| index 66e578c9e8b99019524f34ccd52699ab5dc81ee6..57e0feab6fc3183076005c225dde32274b38b00e 100644
|
| --- a/include/private/GrAuditTrail.h
|
| +++ b/include/private/GrAuditTrail.h
|
| @@ -125,6 +125,19 @@ public:
|
|
|
| void setClientID(int clientID) { fClientID = clientID; }
|
|
|
| + // We could just return our internal bookkeeping struct if copying the data out becomes
|
| + // a performance issue, but until then its nice to decouple
|
| + struct BatchInfo {
|
| + SkRect fBounds;
|
| + struct Batch {
|
| + int fClientID;
|
| + SkRect fBounds;
|
| + };
|
| + SkTArray<Batch> fBatches;
|
| + };
|
| +
|
| + void getBoundsByClientID(SkTArray<BatchInfo>* outInfo, int clientID);
|
| +
|
| void fullReset() {
|
| SkASSERT(fEnabled);
|
| fBatchList.reset();
|
|
|