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

Unified Diff: src/gpu/GrDrawTarget.h

Issue 2298003003: Don't purge resources for trivial GrContext flushes (Closed)
Patch Set: Created 4 years, 4 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 | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawTarget.h
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
index 682dd2de3300fdf718db2acb26a780c810259977..d0fc8ee199150c48719955cd0b7f74c55d6f6760 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -96,10 +96,11 @@ public:
void reset();
/**
- * Together these two functions flush all queued up draws to the Gpu.
+ * Together these two functions flush all queued up draws to GrCommandBuffer. The return value
robertphillips 2016/08/31 17:48:07 "o f" ?
bsalomon 2016/08/31 18:23:16 Done.
+ * o fdrawBatches() indicates whether any commands were actually issued to the GPU.
*/
void prepareBatches(GrBatchFlushState* flushState);
- void drawBatches(GrBatchFlushState* flushState);
+ bool drawBatches(GrBatchFlushState* flushState);
/**
* Gets the capabilities of the draw target.
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698