• Home
  • Raw
  • Download

Lines Matching refs:dContext

37 static bool check_rect(GrDirectContext* dContext,  in check_rect()  argument
53 if (!sdc->readPixels(dContext, readback, {rect.fLeft, rect.fTop})) { in check_rect()
76 static void clear_op_test(skiatest::Reporter* reporter, GrDirectContext* dContext) { in clear_op_test() argument
107 sdc = newSDC(dContext, kW, kH); in clear_op_test()
112 if (!check_rect(dContext, sdc.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
117 sdc = newSDC(dContext, kW, kH); in clear_op_test()
123 if (!check_rect(dContext, sdc.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
128 sdc = newSDC(dContext, kW, kH); in clear_op_test()
134 if (!check_rect(dContext, sdc.get(), fullRect, kColor2, &actualValue, &failX, &failY)) { in clear_op_test()
139 sdc = newSDC(dContext, kW, kH); in clear_op_test()
145 if (!check_rect(dContext, sdc.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
150 sdc = newSDC(dContext, kW, kH); in clear_op_test()
156 if (!check_rect(dContext, sdc.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
161 sdc = newSDC(dContext, kW, kH); in clear_op_test()
167 if (!check_rect(dContext, sdc.get(), mid1Rect, kColor2, &actualValue, &failX, &failY)) { in clear_op_test()
171 if (!check_rect(dContext, sdc.get(), outerLeftEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
172 !check_rect(dContext, sdc.get(), outerTopEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
173 !check_rect(dContext, sdc.get(), outerRightEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
174 !check_rect(dContext, sdc.get(), outerBottomEdge, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
179 sdc = newSDC(dContext, kW, kH); in clear_op_test()
185 if (!check_rect(dContext, sdc.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
190 sdc = newSDC(dContext, kW, kH); in clear_op_test()
198 if (!check_rect(dContext, sdc.get(), mid2Rect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
202 if (!check_rect(dContext, sdc.get(), innerLeftEdge, kColor2, &actualValue, &failX, &failY) || in clear_op_test()
203 !check_rect(dContext, sdc.get(), innerTopEdge, kColor2, &actualValue, &failX, &failY) || in clear_op_test()
204 !check_rect(dContext, sdc.get(), innerRightEdge, kColor2, &actualValue, &failX, &failY) || in clear_op_test()
205 !check_rect(dContext, sdc.get(), innerBottomEdge, kColor2, &actualValue, &failX, &failY)) { in clear_op_test()
209 if (!check_rect(dContext, sdc.get(), outerLeftEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
210 !check_rect(dContext, sdc.get(), outerTopEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
211 !check_rect(dContext, sdc.get(), outerRightEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
212 !check_rect(dContext, sdc.get(), outerBottomEdge, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
217 sdc = newSDC(dContext, kW, kH); in clear_op_test()
224 if (!check_rect(dContext, sdc.get(), mid1Rect, kColor2, &actualValue, &failX, &failY)) { in clear_op_test()
228 if (!check_rect(dContext, sdc.get(), outerLeftEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
229 !check_rect(dContext, sdc.get(), outerTopEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
230 !check_rect(dContext, sdc.get(), outerRightEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
231 !check_rect(dContext, sdc.get(), outerBottomEdge, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
237 if (!dContext->priv().caps()->performColorClearsAsDraws() && in clear_op_test()
238 !dContext->priv().caps()->performStencilClearsAsDraws() && in clear_op_test()
239 !dContext->priv().caps()->performPartialClearsAsDraws()) { in clear_op_test()
245 sdc = newSDC(dContext, kW, kH); in clear_op_test()
264 dContext->flushAndSubmit(); in clear_op_test()
270 sdc = newSDC(dContext, kW, kH); in clear_op_test()
290 dContext->flushAndSubmit(); in clear_op_test()