Searched refs:snippetID (Results 1 – 4 of 4) sorted by relevance
30 int snippetID = dict->findOrCreateRuntimeEffectSnippet(testEffect.get()); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS() local31 REPORTER_ASSERT(reporter, snippetID >= SkKnownRuntimeEffects::kUnknownRuntimeEffectIDStart); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()35 const ShaderSnippet* snippet = dict->getEntry(snippetID); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()41 REPORTER_ASSERT(reporter, foundSnippetID == snippetID); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()58 int snippetID = dict->findOrCreateRuntimeEffectSnippet(testEffect.get()); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS() local59 REPORTER_ASSERT(reporter, snippetID >= SkKnownRuntimeEffects::kUnknownRuntimeEffectIDStart); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()63 const ShaderSnippet* snippet = dict->getEntry(snippetID); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()69 REPORTER_ASSERT(reporter, foundSnippetID == snippetID); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()86 int snippetID = dict->findOrCreateRuntimeEffectSnippet(testEffect.get()); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS() local87 REPORTER_ASSERT(reporter, snippetID >= SkKnownRuntimeEffects::kUnknownRuntimeEffectIDStart); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()[all …]
24 void add_block(PaintParamsKeyBuilder* builder, int snippetID) { in add_block() argument25 builder->beginBlock(snippetID); in add_block()29 PaintParamsKey create_key(const ShaderCodeDictionary* dict, int snippetID, SkArenaAlloc* arena) { in create_key() argument31 add_block(&builder, snippetID); in create_key()
554 bool ShaderCodeDictionary::isValidID(int snippetID) const { in isValidID()555 if (snippetID < 0) { in isValidID()559 if (snippetID < kBuiltInCodeSnippetIDCount) { in isValidID()562 if (snippetID >= kSkiaKnownRuntimeEffectsStart && snippetID < kSkiaKnownRuntimeEffectsEnd) { in isValidID()563 return snippetID < kSkiaKnownRuntimeEffectsStart + kStableKeyCnt; in isValidID()568 if (snippetID >= kUnknownRuntimeEffectIDStart) { in isValidID()569 int userDefinedCodeSnippetID = snippetID - kUnknownRuntimeEffectIDStart; in isValidID()
217 bool isValidID(int snippetID) const SK_EXCLUDES(fSpinLock);