Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/tests/unit/
DShaderCacheTests.cpp164 inline bool checkShader(const sk_sp<SkData>& shader1, const sk_sp<SkData>& shader2) { in checkShader() argument
165 return nullptr != shader1 && nullptr != shader2 && shader1->size() == shader2->size() && in checkShader()
166 0 == memcmp(shader1->data(), shader2->data(), shader1->size()); in checkShader()
170 sk_sp<SkData> shader2 = SkData::MakeWithCString(program); in checkShader() local
171 return checkShader(shader, shader2); in checkShader()
180 sk_sp<SkData> shader2 = SkData::MakeWithCopy(program.data(), program.size() * sizeof(T)); in checkShader() local
181 return checkShader(shader, shader2); in checkShader()
411 constexpr char shader2[] = "someVS"; in RENDERTHREAD_TEST() local
421 setShader(inVS, shader2 + std::to_string(saveIteration)); in RENDERTHREAD_TEST()
438 ASSERT_TRUE(checkShader(outVS, shader2 + std::to_string(numIterations))); in RENDERTHREAD_TEST()