Lines Matching refs:instance
149 ThreadContext& instance = ThreadContext::Instance();
150 instance.fStack.push({processor, emitArgs, StatementArray{}});
151 CurrentEmitArgs()->fFragBuilder->fDeclarations.swap(instance.fStack.top().fSavedDeclarations);
156 ThreadContext& instance = Instance();
157 SkASSERT(!instance.fStack.empty());
158 CurrentEmitArgs()->fFragBuilder->fDeclarations.swap(instance.fStack.top().fSavedDeclarations);
159 instance.fStack.pop();
188 thread_local ThreadContext* instance = nullptr;
191 return instance != nullptr;
195 SkASSERTF(instance, "dsl::Start() has not been called");
196 return *instance;
200 SkASSERT((instance == nullptr) != (newInstance == nullptr));
201 delete instance;
202 instance = newInstance.release();