Lines Matching refs:UniformData
20 sk_sp<UniformData> make_ud(int numUniforms, int dataSize) { in make_ud()
30 sk_sp<UniformData> ud = UniformData::Make(numUniforms, kUniforms, dataSize); in make_ud()
51 sk_sp<UniformData> result1; in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
53 sk_sp<UniformData> ud1 = make_ud(2, 16); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
55 REPORTER_ASSERT(reporter, result1->id() != UniformData::kInvalidUniformID); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
57 sk_sp<UniformData> lookup = cache->lookup(result1->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
65 sk_sp<UniformData> ud2 = make_ud(2, 16); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
66 sk_sp<UniformData> result2 = cache->findOrCreate(ud2); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
67 REPORTER_ASSERT(reporter, result2->id() != UniformData::kInvalidUniformID); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
68 REPORTER_ASSERT(reporter, ud2->id() == UniformData::kInvalidUniformID); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
70 sk_sp<UniformData> lookup = cache->lookup(result2->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
78 sk_sp<UniformData> ud3 = make_ud(3, 16); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
79 sk_sp<UniformData> result3 = cache->findOrCreate(ud3); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
80 REPORTER_ASSERT(reporter, result3->id() != UniformData::kInvalidUniformID); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
83 sk_sp<UniformData> lookup = cache->lookup(result3->id()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()