Home | History | Annotate | Download | only in unit

Lines Matching refs:Glop

38     ValidatingBakedOpRenderer(RenderState& renderState, std::function<void(const Glop& glop)> validator)
45 const ClipBase* clip, const Glop& glop) {
48 vbor->mValidator(glop);
50 std::function<void(const Glop& glop)> mValidator;
56 std::function<void(const Glop& glop)> glopVerifier, int expectedGlopCount = 1) {
64 auto glopReceiver = [&glopVerifier, &glopCount, &expectedGlopCount] (const Glop& glop) {
65 ASSERT_LE(glopCount++, expectedGlopCount) << expectedGlopCount << "glop(s) expected";
66 glopVerifier(glop);
79 << "Glop(s) expected";
92 auto textureGlopVerifier = [] (const Glop& glop) {
93 // validate glop produced by renderPathTexture (so texture, unit quad)
94 auto texture = glop.fill.texture.texture;
105 EXPECT_EQ(expectedModelView, glop.transform.modelView)
109 // Arc and Oval will render functionally the same glop, differing only in texture content
122 testUnmergedGlopDispatch(renderThread, &op, [&renderThread] (const Glop& glop) {
129 testUnmergedGlopDispatch(renderThread, op, [&result] (const Glop& glop) {
130 result = glop.transform.transformFlags;
176 auto glopReceiver = [&glopCount] (const Glop& glop) {
179 EXPECT_EQ(FloatColor({1, 1, 1, 1}), glop.fill.color);
182 EXPECT_EQ(FloatColor({1, 0, 0, 1}), glop.fill.color);
198 std::function<void(const Glop& glop)> validator) {
243 validateLayerDraw(renderThread, [&glopCount, &debugLayersUpdates](const Glop& glop) {
246 EXPECT_TRUE(glop.fill.colorEnabled);
247 EXPECT_EQ(makeFloatColor(Color::Black), glop.fill.color);
250 EXPECT_FALSE(glop.fill.colorEnabled);
253 EXPECT_TRUE(glop.fill.colorEnabled);
255 EXPECT_EQ(GLenum(GL_ONE), glop.blend.src);
256 EXPECT_EQ(GLenum(GL_ONE_MINUS_SRC_ALPHA), glop.blend.dst);
258 glop.fill.color) << "Should be transparent green if debugLayersUpdates";
261 EXPECT_TRUE(glop.fill.colorEnabled);
263 ASSERT_EQ(makeFloatColor(expectedColor), glop.fill.color);