aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private/GrAuditTrail.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2016-02-29 11:15:06 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-29 11:15:06 -0800
commit10d8fc29bc1605c134e98f5b58c2efb73cef6073 (patch)
tree702f20b251cfa0dfb6c858269ed148ec9e0ee62c /include/private/GrAuditTrail.h
parent790d5132620d86813380d3df251e80dd2b41a409 (diff)
Render batch bounds as stroke rects
Diffstat (limited to 'include/private/GrAuditTrail.h')
-rw-r--r--include/private/GrAuditTrail.h13
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();