Lines Matching refs:SkData
84 inline bool checkShader(const sk_sp<SkData>& shader1, const sk_sp<SkData>& shader2) { in checkShader()
89 inline bool checkShader(const sk_sp<SkData>& shader, const char* program) { in checkShader()
90 sk_sp<SkData> shader2 = SkData::MakeWithCString(program); in checkShader()
95 bool checkShader(const sk_sp<SkData>& shader, std::vector<T>& program) { in checkShader()
96 sk_sp<SkData> shader2 = SkData::MakeWithCopy(program.data(), program.size() * sizeof(T)); in checkShader()
100 void setShader(sk_sp<SkData>& shader, const char* program) { in setShader()
101 shader = SkData::MakeWithCString(program); in setShader()
105 void setShader(sk_sp<SkData>& shader, std::vector<T>& buffer) { in setShader()
106 shader = SkData::MakeWithCopy(buffer.data(), buffer.size() * sizeof(T)); in setShader()
116 #define GrProgramDescTest(a) (*SkData::MakeWithCString(#a).get())
137 sk_sp<SkData> outVS; in TEST()
138 ASSERT_EQ(ShaderCache::get().load(GrProgramDescTest(432)), sk_sp<SkData>()); in TEST()
141 sk_sp<SkData> inVS; in TEST()
146 ASSERT_NE((outVS = ShaderCache::get().load(GrProgramDescTest(100))), sk_sp<SkData>()); in TEST()
148 ASSERT_NE((outVS = ShaderCache::get().load(GrProgramDescTest(432))), sk_sp<SkData>()); in TEST()
157 ASSERT_EQ(ShaderCache::get().load(GrProgramDescTest(432)), sk_sp<SkData>()); in TEST()
163 sk_sp<SkData> outVS2; in TEST()
164 ASSERT_NE((outVS2 = ShaderCache::get().load(GrProgramDescTest(432))), sk_sp<SkData>()); in TEST()
172 ASSERT_NE((outVS2 = ShaderCache::get().load(GrProgramDescTest(432))), sk_sp<SkData>()); in TEST()
183 ASSERT_NE((outVS2 = ShaderCache::get().load(GrProgramDescTest(432))), sk_sp<SkData>()); in TEST()
216 std::vector<std::pair<sk_sp<SkData>, sk_sp<SkData>>> blobVec(numBlob); in TEST()
223 sk_sp<SkData> key, data; in TEST()
251 ASSERT_EQ(ShaderCache::get().load(*blob.first.get()), sk_sp<SkData>()); in TEST()
256 ASSERT_EQ(ShaderCache::get().load(*blob.first.get()), sk_sp<SkData>()); in TEST()
275 ASSERT_EQ(ShaderCache::get().load(*blob.first.get()), sk_sp<SkData>()); in TEST()