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

Unified Diff: tools/gpu/TestContext.h

Issue 1965273004: Nanobench running on Vulkan (Closed) Base URL: https://chromium.googlesource.com/skia.git@gltotest
Patch Set: Created 4 years, 7 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 | « bench/nanobench.cpp ('k') | tools/gpu/TestContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gpu/TestContext.h
diff --git a/tools/gpu/TestContext.h b/tools/gpu/TestContext.h
index 5143b8a6fae352c3c8bea503908288ab41061ece..ffa8cae8f9d76792d8e1a924500f396efb6f0861 100644
--- a/tools/gpu/TestContext.h
+++ b/tools/gpu/TestContext.h
@@ -54,6 +54,8 @@ public:
* Otherwise it will call the platform SwapBuffers method. This may or may
* not perform some sort of synchronization, depending on whether the
* drawing surface provided by the platform is double buffered.
+ *
+ * Implicitly performs a submit().
*/
void waitOnSyncOrSwap();
@@ -65,6 +67,12 @@ public:
*/
virtual void testAbandon();
+ /** Ensures all work is submitted to the GPU for execution. */
+ virtual void submit() = 0;
+
+ /** Wait until all GPU work is finished. */
+ virtual void finish() = 0;
+
/**
* returns the fencesync object owned by this GLTestContext
*/
« no previous file with comments | « bench/nanobench.cpp ('k') | tools/gpu/TestContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698