aboutsummaryrefslogtreecommitdiff
path: root/gm/lazytiling.cpp
diff options
context:
space:
mode:
authorBrian Salomon <briansalomon@gmail.com>2023-12-05 11:11:27 -0500
committerSkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com>2023-12-05 17:48:38 +0000
commitc759bbf163109e9ced78d6331b5f19ca8c5616cf (patch)
tree23e2fe454d55da0281c574dcdbca668f47588dc0 /gm/lazytiling.cpp
parentc0ad3e9bdec09480cf6300e5a6c7e3a5d88b0bfc (diff)
downloadskia-c759bbf163109e9ced78d6331b5f19ca8c5616cf.tar.gz
[graphite] Test Dawn with no yield context option
Adds new config, grdawn_noyield, that uses the context option. --noYieldToWebGPU runs unit tests in dm with this context option. Add a bot that runs both of the above. GraphiteTestContext is plumbed to GM classes so that async read pixels GMs can run with the config and yield outside of Context. Simiarly, unit tests that require sync'ing Context now get a GraphiteTestContext so that they can tick Dawn/WebGPU outside of Context. Async rescale and read GMs now create their own GM subclasses so they can use GraphiteTestContext to tick while waiting for results. Bug: b/309019344 Change-Id: Ib11c9d1210cd0a37acc8da651d8b34f551c7be0a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/779617 Commit-Queue: Brian Salomon <briansalomon@gmail.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'gm/lazytiling.cpp')
-rw-r--r--gm/lazytiling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/lazytiling.cpp b/gm/lazytiling.cpp
index 769865dea3..a9bbeed5a8 100644
--- a/gm/lazytiling.cpp
+++ b/gm/lazytiling.cpp
@@ -191,7 +191,7 @@ protected:
SkISize getISize() override { return SkISize::Make(kTotalWidth, kTotalHeight); }
- DrawResult onGpuSetup(SkCanvas* canvas, SkString* errorMsg) override {
+ DrawResult onGpuSetup(SkCanvas* canvas, SkString* errorMsg, GraphiteTestContext*) override {
auto dContext = GrAsDirectContext(canvas->recordingContext());
if (!dContext || dContext->abandoned()) {
return DrawResult::kSkip;