From 10d8fc29bc1605c134e98f5b58c2efb73cef6073 Mon Sep 17 00:00:00 2001 From: joshualitt Date: Mon, 29 Feb 2016 11:15:06 -0800 Subject: 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 --- include/private/GrAuditTrail.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/private') 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 fBatches; + }; + + void getBoundsByClientID(SkTArray* outInfo, int clientID); + void fullReset() { SkASSERT(fEnabled); fBatchList.reset(); -- cgit v1.2.3