Lines Matching refs:sdc
38 SurfaceDrawContext* sdc, in check_rect() argument
53 if (!sdc->readPixels(dContext, readback, {rect.fLeft, rect.fTop})) { in check_rect()
81 std::unique_ptr<SurfaceDrawContext> sdc; in clear_op_test() local
107 sdc = newSDC(dContext, kW, kH); in clear_op_test()
108 SkASSERT(sdc); in clear_op_test()
111 sdc->clear(fullRect, kColor1f); 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()
118 SkASSERT(sdc); in clear_op_test()
121 sdc->clear(fullRect, kColor1f); in clear_op_test()
122 sdc->clear(fullRect, kColor1f); 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()
129 SkASSERT(sdc); in clear_op_test()
132 sdc->clear(fullRect, kColor1f); in clear_op_test()
133 sdc->clear(fullRect, kColor2f); 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()
140 SkASSERT(sdc); in clear_op_test()
143 sdc->clear(fullRect, kColor1f); in clear_op_test()
144 sdc->clear(mid1Rect, kColor1f); 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()
151 SkASSERT(sdc); in clear_op_test()
154 sdc->clear(mid1Rect, kColor1f); in clear_op_test()
155 sdc->clear(fullRect, kColor1f); 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()
162 SkASSERT(sdc); in clear_op_test()
165 sdc->clear(fullRect, kColor1f); in clear_op_test()
166 sdc->clear(mid1Rect, kColor2f); 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()
180 SkASSERT(sdc); in clear_op_test()
183 sdc->clear(mid1Rect, kColor2f); in clear_op_test()
184 sdc->clear(fullRect, kColor1f); 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()
191 SkASSERT(sdc); in clear_op_test()
195 sdc->clear(fullRect, kColor1f); in clear_op_test()
196 sdc->clear(mid1Rect, kColor2f); in clear_op_test()
197 sdc->clear(mid2Rect, kColor1f); 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()
218 SkASSERT(sdc); in clear_op_test()
221 sdc->clear(fullRect, kColor1f); in clear_op_test()
222 sdc->clear(mid2Rect, kColor1f); in clear_op_test()
223 sdc->clear(mid1Rect, kColor2f); 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()
245 sdc = newSDC(dContext, kW, kH); in clear_op_test()
246 SkASSERT(sdc); in clear_op_test()
248 sdc->clearStencilClip(kScissorRect, true); in clear_op_test()
250 sdc->clear(kScissorRect, SK_PMColor4fWHITE); in clear_op_test()
253 sdc->clear(kScissorRect, SK_PMColor4fBLACK); in clear_op_test()
255 auto opsTask = sdc->getOpsTask(); in clear_op_test()
270 sdc = newSDC(dContext, kW, kH); in clear_op_test()
271 SkASSERT(sdc); in clear_op_test()
273 sdc->clearStencilClip(kScissorRect, true); in clear_op_test()
275 sdc->clear(kScissorRect, SK_PMColor4fWHITE); in clear_op_test()
279 sdc->clearStencilClip(kScissorRect, false); in clear_op_test()
281 auto opsTask = sdc->getOpsTask(); in clear_op_test()