Update internal skia uses to use flushAndSubmit and submit calls.
Bug: skia:10118
Change-Id: Ieb7c0eece56d3d9df56ecb52e00e76c01f038de8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289888
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/GrLegacyDirectContext.cpp b/src/gpu/GrLegacyDirectContext.cpp
index f7cae12..595807e 100644
--- a/src/gpu/GrLegacyDirectContext.cpp
+++ b/src/gpu/GrLegacyDirectContext.cpp
@@ -48,7 +48,7 @@
// this if-test protects against the case where the context is being destroyed
// before having been fully created
if (this->priv().getGpu()) {
- this->flush();
+ this->flushAndSubmit();
}
delete fAtlasManager;
@@ -65,7 +65,7 @@
}
void freeGpuResources() override {
- this->flush();
+ this->flushAndSubmit();
fAtlasManager->freeAll();
INHERITED::freeGpuResources();