Home
last modified time | relevance | path

Searched refs:snippetID (Results 1 – 4 of 4) sorted by relevance

/aosp_15_r20/external/skia/tests/graphite/
H A DRTEffectTest.cpp30 int snippetID = dict->findOrCreateRuntimeEffectSnippet(testEffect.get()); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS() local
31 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() local
59 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() local
87 REPORTER_ASSERT(reporter, snippetID >= SkKnownRuntimeEffects::kUnknownRuntimeEffectIDStart); in DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
[all …]
H A DKeyTest.cpp24 void add_block(PaintParamsKeyBuilder* builder, int snippetID) { in add_block() argument
25 builder->beginBlock(snippetID); in add_block()
29 PaintParamsKey create_key(const ShaderCodeDictionary* dict, int snippetID, SkArenaAlloc* arena) { in create_key() argument
31 add_block(&builder, snippetID); in create_key()
/aosp_15_r20/external/skia/src/gpu/graphite/
H A DShaderCodeDictionary.cpp554 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()
H A DShaderCodeDictionary.h217 bool isValidID(int snippetID) const SK_EXCLUDES(fSpinLock);