Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: include/private/GrAuditTrail.h

Issue 1745063002: Render batch bounds as stroke rects (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: tweaks Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrAuditTrail.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | src/gpu/GrAuditTrail.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698