/third_party/skia/src/sksl/ |
H A D | SkSLThreadContext.cpp | 20 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 [all...] |
H A D | SkSLThreadContext.h | 41 class ThreadContext { class 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/ |
H A D | DSLFunction.cpp | 28 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 in define() [all...] |
H A D | DSLExpression.cpp | 45 : 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 in Poison() [all...] |
H A D | DSLVar.cpp | 48 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 in DSLGlobalVar() [all...] |
H A D | DSLCore.cpp | 44 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 in ReleaseProgram() [all...] |
H A D | DSLType.cpp | 38 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 in Array() [all...] |
H A D | DSLSymbols.cpp | 25 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()
|
H A D | DSLStatement.cpp | 34 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()
|
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
H A D | RubyFieldDescriptor.java | 41 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 contex [all...] |
H A D | RubyDescriptor.java | 42 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 contex [all...] |
H A D | RubyMap.java | 44 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 contex [all...] |
H A D | RubyRepeatedField.java | 41 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 contex [all...] |
H A D | RubyEnumDescriptor.java | 46 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()
|
H A D | Utils.java | 44 import org.jruby.runtime.ThreadContext; 54 public static IRubyObject fieldTypeToRuby(ThreadContext context, Descriptors.FieldDescriptor.Type type) { in fieldTypeToRuby() 58 public static IRubyObject fieldTypeToRuby(ThreadContext context, DescriptorProtos.FieldDescriptorProto.Type type) { in fieldTypeToRuby() 62 private static IRubyObject fieldTypeToRuby(ThreadContext context, String typeName) { in fieldTypeToRuby() 67 public static IRubyObject checkType(ThreadContext context, Descriptors.FieldDescriptor.Type fieldType, in checkType() 133 public static IRubyObject wrapPrimaryValue(ThreadContext context, Descriptors.FieldDescriptor.Type fieldType, Object value) { in wrapPrimaryValue() 190 public static IRubyObject validateStringEncoding(ThreadContext context, Descriptors.FieldDescriptor.Type type, IRubyObject value) { in validateStringEncoding() 207 public static void checkNameAvailability(ThreadContext context, String name) { in checkNameAvailability() 236 public static RubyFieldDescriptor msgdefCreateField(ThreadContext context, String label, IRubyObject name, in msgdefCreateField() 254 protected static void checkIntTypePrecision(ThreadContext contex [all...] |
H A D | RubyOneofDescriptor.java | 13 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()
|
H A D | RubyMessageBuilderContext.java | 42 import org.jruby.runtime.ThreadContext; 63 public IRubyObject initialize(ThreadContext context, IRubyObject descriptor, IRubyObject rubyBuilder) { 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()
|
H A D | RubyMessage.java | 40 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 contex [all...] |
H A D | RubyDescriptorPool.java | 66 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()
|
H A D | RubyEnum.java | 39 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/ |
H A D | DSLWriter.cpp | 25 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 in Reset() [all...] |
H A D | DSLFPs.cpp | 22 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/ |
H A D | pthread.c | 35 typedef struct ThreadContext { struct 44 } ThreadContext; typedef 48 ThreadContext *c = priv; in worker_func() 54 static void slice_thread_uninit(ThreadContext *c) in slice_thread_uninit() 62 ThreadContext *c = ctx->graph->internal->thread; in thread_execute() 75 static int thread_init_internal(ThreadContext *c, int nb_threads) in thread_init_internal() 92 graph->internal->thread = av_mallocz(sizeof(ThreadContext)); in ff_graph_thread_init()
|
/third_party/skia/tests/ |
H A D | SkSLDSLTest.cpp | 1262 DSLExpression sqrt(SkSL::ThreadContext::Compiler().convertIdentifier(/*line=*/-1, "sqrt")); 1269 DSLExpression pow(SkSL::ThreadContext::Compiler().convertIdentifier(/*line=*/-1, "pow")); 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()); 1355 REPORTER_ASSERT(r, SkSL::ThreadContext::ProgramElements().size() == 2); 1356 EXPECT_EQUAL(*SkSL::ThreadContext::ProgramElements()[0], "half4 a;"); 1357 EXPECT_EQUAL(*SkSL::ThreadContext [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | frame_thread_encoder.c | 69 } ThreadContext; typedef 71 #define OFF(member) offsetof(ThreadContext, member) 72 DEFINE_OFFSET_ARRAY(ThreadContext, thread_ctx, pthread_init_cnt, 79 ThreadContext *c = avctx->internal->frame_thread_encoder; in worker() 137 ThreadContext *c; in ff_frame_thread_encoder_init() 192 c = avctx->internal->frame_thread_encoder = av_mallocz(sizeof(ThreadContext)); in ff_frame_thread_encoder_init() 259 ThreadContext *c= avctx->internal->frame_thread_encoder; in ff_frame_thread_encoder_free() 286 ThreadContext *c = avctx->internal->frame_thread_encoder; in ff_thread_video_encode_frame()
|