diff options
author | 2016-02-29 11:15:06 -0800 | |
---|---|---|
committer | 2016-02-29 11:15:06 -0800 | |
commit | 10d8fc29bc1605c134e98f5b58c2efb73cef6073 (patch) | |
tree | 702f20b251cfa0dfb6c858269ed148ec9e0ee62c /include/private/GrAuditTrail.h | |
parent | 790d5132620d86813380d3df251e80dd2b41a409 (diff) |
Render batch bounds as stroke rects
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1745063002
Review URL: https://codereview.chromium.org/1745063002
Diffstat (limited to 'include/private/GrAuditTrail.h')
-rw-r--r-- | include/private/GrAuditTrail.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/private/GrAuditTrail.h b/include/private/GrAuditTrail.h index 66e578c9e8..57e0feab6f 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(); |