Start precompiling DDL shaders
This is through a private API but it, at least, connects things end-to-end.
Bug: skia:9455
Change-Id: Ib34d49c5c4e4cfa5fa599afc5c967fcadc3de10e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/268627
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/GrContextPriv.cpp b/src/gpu/GrContextPriv.cpp
index e033ffa..9a57ac5 100644
--- a/src/gpu/GrContextPriv.cpp
+++ b/src/gpu/GrContextPriv.cpp
@@ -68,6 +68,16 @@
fContext->drawingManager()->copyRenderTasksFromDDL(ddl, newDest);
}
+void GrContextPriv::compile(const GrProgramDesc& desc, const GrProgramInfo& info) {
+ GrGpu* gpu = this->getGpu();
+ if (!gpu) {
+ return;
+ }
+
+ gpu->compile(desc, info);
+}
+
+
//////////////////////////////////////////////////////////////////////////////
#if GR_TEST_UTILS