Home
last modified time | relevance | path

Searched refs:ThreadContext (Results 1 – 25 of 51) sorted by relevance

123

/third_party/skia/src/sksl/
DSkSLThreadContext.cpp20 ThreadContext::ThreadContext(SkSL::Compiler* compiler, SkSL::ProgramKind kind, in ThreadContext() function in SkSL::ThreadContext
53 ThreadContext::~ThreadContext() { in ~ThreadContext()
69 void ThreadContext::setupSymbolTable() { in setupSymbolTable()
126 SkSL::Context& ThreadContext::Context() { in Context()
130 SkSL::ProgramSettings& ThreadContext::Settings() { in Settings()
134 std::shared_ptr<SkSL::SymbolTable>& ThreadContext::SymbolTable() { in SymbolTable()
138 const SkSL::Modifiers* ThreadContext::Modifiers(const SkSL::Modifiers& modifiers) { in Modifiers()
142 ThreadContext::RTAdjustData& ThreadContext::RTAdjustState() { in RTAdjustState()
147 void ThreadContext::StartFragmentProcessor(GrFragmentProcessor::ProgramImpl* processor, in StartFragmentProcessor()
149 ThreadContext& instance = ThreadContext::Instance(); in StartFragmentProcessor()
[all …]
DSkSLThreadContext.h41 class ThreadContext {
43 ThreadContext(SkSL::Compiler* compiler, SkSL::ProgramKind kind,
46 ~ThreadContext();
185 static ThreadContext& Instance();
187 static void SetInstance(std::unique_ptr<ThreadContext> instance);
/third_party/skia/src/sksl/dsl/
DDSLFunction.cpp28 if (!ThreadContext::IsModule()) { in init()
32 if (ThreadContext::Settings().fForceNoInline) { in init()
43 ThreadContext::ReportError("parameter has already been used in another function"); in init()
55 fDecl = SkSL::FunctionDeclaration::Convert(ThreadContext::Context(), in init()
56 *ThreadContext::SymbolTable(), in init()
58 ThreadContext::Modifiers(modifiers.fModifiers), in init()
61 ThreadContext::ReportErrors(pos); in init()
70 ThreadContext::ProgramElements().push_back(std::make_unique<SkSL::FunctionPrototype>( in init()
71 pos.line(), fDecl, ThreadContext::IsModule())); in init()
82 if (!ThreadContext::ProgramElements().empty()) { in define()
[all …]
DDSLExpression.cpp45 : fExpression(SkSL::Literal::MakeFloat(ThreadContext::Context(), in DSLExpression()
50 ThreadContext::ReportError("floating point value is infinite"); in DSLExpression()
52 ThreadContext::ReportError("floating point value is NaN"); in DSLExpression()
58 : fExpression(SkSL::Literal::MakeInt(ThreadContext::Context(), in DSLExpression()
63 : fExpression(SkSL::Literal::MakeInt(ThreadContext::Context(), in DSLExpression()
68 : fExpression(SkSL::Literal::MakeInt(ThreadContext::Context(), in DSLExpression()
73 : fExpression(SkSL::Literal::MakeBool(ThreadContext::Context(), in DSLExpression()
86 ThreadContext::ReportErrors(pos); in DSLExpression()
90 fExpression = SkSL::Poison::Make(pos.line(), ThreadContext::Context()); in DSLExpression()
95 return DSLExpression(SkSL::Poison::Make(pos.line(), ThreadContext::Context())); in Poison()
[all …]
DDSLVar.cpp48 if (ThreadContext::InFragmentProcessor()) { in DSLVarBase()
53 SkAssertResult(SkSL::type_to_grsltype(ThreadContext::Context(), in DSLVarBase()
58 SkAssertResult(SkSL::type_to_grsltype(ThreadContext::Context(), skslType, in DSLVarBase()
63 SkASSERT(ThreadContext::CurrentEmitArgs()); in DSLVarBase()
64 fUniformHandle = ThreadContext::CurrentEmitArgs()->fUniformHandler->addUniformArray( in DSLVarBase()
65 &ThreadContext::CurrentEmitArgs()->fFp, kFragment_GrShaderFlag, grslType, in DSLVarBase()
75 ThreadContext::ReportError(String::printf("variable '%.*s' was destroyed without being " in ~DSLVarBase()
111 fName = ThreadContext::CurrentEmitArgs()->fSampleCoord; in DSLGlobalVar()
117 const SkSL::Modifiers* modifiers = ThreadContext::Context().fModifiersPool->add( in DSLGlobalVar()
123 fVar = ThreadContext::SymbolTable()->takeOwnershipOfIRNode(std::make_unique<SkSL::Variable>( in DSLGlobalVar()
[all …]
DDSLCore.cpp44 ThreadContext::SetInstance(std::make_unique<ThreadContext>(compiler, kind, settings, in Start()
50 ThreadContext::SetInstance(std::make_unique<ThreadContext>(compiler, kind, settings, in StartModule()
55 SkASSERTF(!ThreadContext::InFragmentProcessor(), in End()
57 ThreadContext::SetInstance(nullptr); in End()
61 return ThreadContext::GetErrorReporter(); in GetErrorReporter()
66 ThreadContext::SetErrorReporter(errorReporter); in SetErrorReporter()
72 ThreadContext& instance = ThreadContext::Instance(); in ReleaseProgram()
100 ThreadContext::ReportErrors(PositionInfo()); in ReleaseProgram()
106 SkASSERT(!ThreadContext::SymbolTable()); in ReleaseProgram()
132 return SkSL::FunctionCall::Convert(ThreadContext::Context(), /*line=*/-1, in Call()
[all …]
DDSLType.cpp38 const Symbol* symbol = (*ThreadContext::SymbolTable())[name]; in find_type()
58 type = type->applyPrecisionQualifiers(context, modifiers, ThreadContext::SymbolTable().get(), in find_type()
60 ThreadContext::ReportErrors(pos); in find_type()
170 : fSkSLType(find_type(ThreadContext::Context(), name, PositionInfo())) {} in DSLType()
173 : fSkSLType(find_type(ThreadContext::Context(), name, &modifiers->fModifiers, position)) {} in DSLType()
176 : fSkSLType(verify_type(ThreadContext::Context(), type, /*allowPrivateTypes=*/true, in DSLType()
231 const Context& context = ThreadContext::Context(); in skslType()
248 return SkSL::Constructor::Convert(ThreadContext::Context(), /*line=*/-1, type.skslType(), in Construct()
253 count = base.skslType().convertArraySize(ThreadContext::Context(), in Array()
255 ThreadContext::ReportErrors(pos); in Array()
[all …]
DDSLStatement.cpp34 fStatement = SkSL::ExpressionStatement::Make(ThreadContext::Context(), std::move(skslExpr)); in DSLStatement()
39 : fStatement(SkSL::ExpressionStatement::Make(ThreadContext::Context(), std::move(expr))) { in DSLStatement()
52 ThreadContext::ReportErrors(pos); in DSLStatement()
65 if (fStatement && ThreadContext::InFragmentProcessor()) { in ~DSLStatement()
66 ThreadContext::CurrentEmitArgs()->fFragBuilder->codeAppend(this->release()); in ~DSLStatement()
70 SkASSERTF(!fStatement || !ThreadContext::Settings().fAssertDSLObjectsReleased, in ~DSLStatement()
DDSLSymbols.cpp25 SymbolTable::Push(&ThreadContext::SymbolTable()); in PushSymbolTable()
29 SymbolTable::Pop(&ThreadContext::SymbolTable()); in PopSymbolTable()
33 return ThreadContext::SymbolTable(); in CurrentSymbolTable()
37 return ThreadContext::Compiler().convertIdentifier(pos.line(), name); in Symbol()
53 ThreadContext::ReportErrors(pos); in AddToSymbolTable()
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyFieldDescriptor.java41 import org.jruby.runtime.ThreadContext;
69 public IRubyObject initialize(ThreadContext context) { in initialize()
81 public IRubyObject getLabel(ThreadContext context) { in getLabel()
93 public IRubyObject setLabel(ThreadContext context, IRubyObject value) { in setLabel()
108 public IRubyObject getName(ThreadContext context) { in getName()
120 public IRubyObject setName(ThreadContext context, IRubyObject value) { in setName()
129 public IRubyObject getSubType(ThreadContext context) { in getSubType()
144 public IRubyObject getType(ThreadContext context) { in getType()
156 public IRubyObject setType(ThreadContext context, IRubyObject value) { in setType()
169 public IRubyObject getnumber(ThreadContext context) { in getnumber()
[all …]
DRubyRepeatedField.java41 import org.jruby.runtime.ThreadContext;
72 public IRubyObject initialize(ThreadContext context, IRubyObject[] args) { in initialize()
111 public IRubyObject indexSet(ThreadContext context, IRubyObject index, IRubyObject value) { in indexSet()
129 public IRubyObject index(ThreadContext context, IRubyObject[] args) { in index()
166 public IRubyObject push(ThreadContext context, IRubyObject value) { in push()
179 public IRubyObject pop_one(ThreadContext context) { in pop_one()
192 public IRubyObject replace(ThreadContext context, IRubyObject list) { in replace()
206 public IRubyObject clear(ThreadContext context) { in clear()
218 public IRubyObject length(ThreadContext context) { in length()
231 public IRubyObject plus(ThreadContext context, IRubyObject list) { in plus()
[all …]
DRubyMap.java44 import org.jruby.runtime.ThreadContext;
105 public IRubyObject initialize(ThreadContext context, IRubyObject[] args) { in initialize()
150 public IRubyObject indexSet(ThreadContext context, IRubyObject key, IRubyObject value) { in indexSet()
171 public IRubyObject index(ThreadContext context, IRubyObject key) { in index()
191 public IRubyObject eq(ThreadContext context, IRubyObject _other) { in eq()
227 public IRubyObject hash(ThreadContext context) { in hash()
247 public IRubyObject keys(ThreadContext context) { in keys()
258 public IRubyObject values(ThreadContext context) { in values()
269 public IRubyObject clear(ThreadContext context) { in clear()
283 public IRubyObject each(ThreadContext context, Block block) { in each()
[all …]
DRubyDescriptor.java42 import org.jruby.runtime.ThreadContext;
77 public IRubyObject initialize(ThreadContext context) { in initialize()
92 public IRubyObject getName(ThreadContext context) { in getName()
104 public IRubyObject setName(ThreadContext context, IRubyObject name) { in setName()
120 public IRubyObject addField(ThreadContext context, IRubyObject obj) { in addField()
135 public IRubyObject lookup(ThreadContext context, IRubyObject fieldName) { in lookup()
147 public IRubyObject msgclass(ThreadContext context) { in msgclass()
161 public IRubyObject each(ThreadContext context, Block block) { in each()
180 public IRubyObject addOneof(ThreadContext context, IRubyObject obj) { in addOneof()
198 public IRubyObject eachOneof(ThreadContext context, Block block) { in eachOneof()
[all …]
DRubyEnumDescriptor.java46 import org.jruby.runtime.ThreadContext;
76 public IRubyObject initialize(ThreadContext context) { in initialize()
88 public IRubyObject getName(ThreadContext context) { in getName()
100 public IRubyObject setName(ThreadContext context, IRubyObject name) { in setName()
115 public IRubyObject addValue(ThreadContext context, IRubyObject name, IRubyObject number) { in addValue()
131 public IRubyObject each(ThreadContext context, Block block) { in each()
148 public IRubyObject enummodule(ThreadContext context) { in enummodule()
167 private RubyModule buildModuleFromDescriptor(ThreadContext context) { in buildModuleFromDescriptor()
DRubyMessage.java40 import org.jruby.runtime.ThreadContext;
68 public IRubyObject initialize(final ThreadContext context, IRubyObject[] args) { in initialize()
131 public IRubyObject indexSet(ThreadContext context, IRubyObject fieldName, IRubyObject value) { in indexSet()
144 public IRubyObject index(ThreadContext context, IRubyObject fieldName) { in index()
176 public IRubyObject hash(ThreadContext context) { in hash()
204 public IRubyObject eq(ThreadContext context, IRubyObject other) { in eq()
238 public IRubyObject methodMissing(ThreadContext context, IRubyObject[] args) { in methodMissing()
276 public IRubyObject dup(ThreadContext context) { in dup()
302 public static IRubyObject getDescriptor(ThreadContext context, IRubyObject recv) { in getDescriptor()
314 public static IRubyObject encode(ThreadContext context, IRubyObject recv, IRubyObject value) { in encode()
[all …]
DUtils.java44 import org.jruby.runtime.ThreadContext;
54 …public static IRubyObject fieldTypeToRuby(ThreadContext context, Descriptors.FieldDescriptor.Type … in fieldTypeToRuby()
58 …public static IRubyObject fieldTypeToRuby(ThreadContext context, DescriptorProtos.FieldDescriptorP… in fieldTypeToRuby()
62 private static IRubyObject fieldTypeToRuby(ThreadContext context, String typeName) { in fieldTypeToRuby()
67 …public static IRubyObject checkType(ThreadContext context, Descriptors.FieldDescriptor.Type fieldT… in checkType()
133 …public static IRubyObject wrapPrimaryValue(ThreadContext context, Descriptors.FieldDescriptor.Type… in wrapPrimaryValue()
190 …public static IRubyObject validateStringEncoding(ThreadContext context, Descriptors.FieldDescripto… in validateStringEncoding()
207 public static void checkNameAvailability(ThreadContext context, String name) { in checkNameAvailability()
236 …public static RubyFieldDescriptor msgdefCreateField(ThreadContext context, String label, IRubyObje… in msgdefCreateField()
254 …protected static void checkIntTypePrecision(ThreadContext context, Descriptors.FieldDescriptor.Typ… in checkIntTypePrecision()
[all …]
DRubyOneofDescriptor.java13 import org.jruby.runtime.ThreadContext;
38 public IRubyObject initialize(ThreadContext context) { in initialize()
51 public IRubyObject getName(ThreadContext context) { in getName()
63 public IRubyObject setName(ThreadContext context, IRubyObject name) { in setName()
84 public IRubyObject addField(ThreadContext context, IRubyObject obj) { in addField()
98 public IRubyObject each(ThreadContext context, Block block) { in each()
DRubyDescriptorPool.java66 public IRubyObject initialize(ThreadContext context) { in initialize()
74 public IRubyObject build(ThreadContext context, Block block) { in build()
89 public IRubyObject lookup(ThreadContext context, IRubyObject name) { in lookup()
107 public static IRubyObject generatedPool(ThreadContext context, IRubyObject recv) { in generatedPool()
111 protected void addToSymtab(ThreadContext context, RubyDescriptor def) { in addToSymtab()
116 protected void addToSymtab(ThreadContext context, RubyEnumDescriptor def) { in addToSymtab()
121 private void buildFileDescriptor(ThreadContext context) { in buildFileDescriptor()
DRubyMessageBuilderContext.java42 import org.jruby.runtime.ThreadContext;
63 …public IRubyObject initialize(ThreadContext context, IRubyObject descriptor, IRubyObject rubyBuild… in initialize()
83 public IRubyObject optional(ThreadContext context, IRubyObject[] args) { in optional()
105 public IRubyObject required(ThreadContext context, IRubyObject[] args) { in required()
122 public IRubyObject repeated(ThreadContext context, IRubyObject[] args) { in repeated()
142 public IRubyObject map(ThreadContext context, IRubyObject[] args) { in map()
192 public IRubyObject oneof(ThreadContext context, IRubyObject name, Block block) { in oneof()
205 private void msgdefAddField(ThreadContext context, String label, IRubyObject name, in msgdefAddField()
DRubyEnum.java39 import org.jruby.runtime.ThreadContext;
51 public static IRubyObject lookup(ThreadContext context, IRubyObject recv, IRubyObject number) { in lookup()
67 public static IRubyObject resolve(ThreadContext context, IRubyObject recv, IRubyObject name) { in resolve()
83 public static IRubyObject getDescriptor(ThreadContext context, IRubyObject recv) { in getDescriptor()
/third_party/skia/src/sksl/dsl/priv/
DDSLWriter.cpp25 return ThreadContext::Instance().fSettings.fDSLMangling; in ManglingEnabled()
30 const String* s = ThreadContext::SymbolTable()->takeOwnershipOfString( in Name()
31 ThreadContext::Instance().fMangler.uniqueName(name, in Name()
32 ThreadContext::SymbolTable().get())); in Name()
52 std::unique_ptr<SkSL::Variable> skslvar = SkSL::Variable::Convert(ThreadContext::Context(), in Var()
57 var.fDeclaration = VarDeclaration::Convert(ThreadContext::Context(), std::move(skslvar), in Var()
64 ThreadContext::ReportErrors(var.fPosition); in Var()
73 return SkSL::Variable::Convert(ThreadContext::Context(), var.fPosition.line(), in CreateParameterVar()
95 return ThreadContext::Instance().fSettings.fDSLMarkVarsDeclared; in MarkVarsDeclared()
124 ThreadContext::ProgramElements().clear(); in Reset()
[all …]
DDSLFPs.cpp22 ThreadContext::StartFragmentProcessor(processor, emitArgs); in StartFragmentProcessor()
26 ThreadContext::EndFragmentProcessor(); in EndFragmentProcessor()
40 GrFragmentProcessor::ProgramImpl* proc = ThreadContext::CurrentProcessor(); in SampleChild()
41 GrFragmentProcessor::ProgramImpl::EmitArgs& emitArgs = *ThreadContext::CurrentEmitArgs(); in SampleChild()
59 code.c_str(), ThreadContext::Context().fTypes.fHalf4.get())); in SampleChild()
/third_party/ffmpeg/libavfilter/
Dpthread.c36 typedef struct ThreadContext { struct
45 } ThreadContext; argument
49 ThreadContext *c = priv; in worker_func()
55 static void slice_thread_uninit(ThreadContext *c) in slice_thread_uninit()
63 ThreadContext *c = ctx->graph->internal->thread; in thread_execute()
76 static int thread_init_internal(ThreadContext *c, int nb_threads) in thread_init_internal()
93 graph->internal->thread = av_mallocz(sizeof(ThreadContext)); in ff_graph_thread_init()
/third_party/skia/tests/
DSkSLDSLTest.cpp1262 DSLExpression sqrt(SkSL::ThreadContext::Compiler().convertIdentifier(/*line=*/-1, "sqrt")); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1269 DSLExpression pow(SkSL::ThreadContext::Compiler().convertIdentifier(/*line=*/-1, "pow")); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1301 REPORTER_ASSERT(r, SkSL::ThreadContext::ProgramElements().size() == 1); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1302 EXPECT_EQUAL(*SkSL::ThreadContext::ProgramElements()[0], in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1321 REPORTER_ASSERT(r, SkSL::ThreadContext::ProgramElements().size() == 1); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1322 EXPECT_EQUAL(*SkSL::ThreadContext::ProgramElements()[0], in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1351 REPORTER_ASSERT(r, SkSL::ThreadContext::ProgramElements().empty()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1355 REPORTER_ASSERT(r, SkSL::ThreadContext::ProgramElements().size() == 2); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1356 EXPECT_EQUAL(*SkSL::ThreadContext::ProgramElements()[0], "half4 a;"); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1357 EXPECT_EQUAL(*SkSL::ThreadContext::ProgramElements()[1], "half4 b = half4(1.0);"); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceGlobalContext.cpp237 for (ThreadContext *TLS : AllThreadContexts) in waitForWorkerThreads()
244 for (ThreadContext *TLS : AllThreadContexts) in waitForWorkerThreads()
327 ThreadContext *MyTLS = new ThreadContext(); in GlobalContext()
374 void GlobalContext::translateFunctionsWrapper(ThreadContext *MyTLS) { in translateFunctionsWrapper()
511 void GlobalContext::emitterWrapper(ThreadContext *MyTLS) { in emitterWrapper()
911 ThreadContext *Tls = new ThreadContext(); in initParserThread()
922 ThreadContext *WorkerTLS = new ThreadContext(); in startWorkerThreads()
929 ThreadContext *WorkerTLS = new ThreadContext(); in startWorkerThreads()
955 ThreadContext *Tls = ICE_TLS_GET_FIELD(TLS); in statsUpdateEmitted()
963 ThreadContext *Tls = ICE_TLS_GET_FIELD(TLS); in statsUpdateRegistersSaved()
[all …]

123