Assemble a Context in the RP code generator.
The SkSL::Program contains a shared Context, but its ProgramConfig
pointer is always null; this can cause issues when calling into
existing code which assumes the Context is fully populated.
Now we create a new Context object which largely replicates the
context from inside the program, but replaces the config pointer.
This will be useful in a followup.
Change-Id: I6257637213c6c30b12d6ef99aa5f6ac9100d9822
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/656437
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
1 file changed