Home | History | Annotate | Download | only in tests

Lines Matching full:drawcontext

64     dc->reset(context->drawContext(rt));
73 SkAutoTUnref<GrDrawContext> drawContext;
98 if (!reset_dc(&drawContext, &rtKeepAlive, context, kW, kH)) {
103 drawContext->clear(&fullRect, kColor1, false);
104 if (!check_rect(drawContext, fullRect, kColor1, &actualValue, &failX, &failY)) {
109 if (!reset_dc(&drawContext, &rtKeepAlive, context, kW, kH)) {
114 drawContext->clear(&fullRect, kColor1, false);
115 drawContext->clear(&fullRect, kColor1, false);
116 if (!check_rect(drawContext, fullRect, kColor1, &actualValue, &failX, &failY)) {
121 if (!reset_dc(&drawContext, &rtKeepAlive, context, kW, kH)) {
126 drawContext->clear(&fullRect, kColor1, false);
127 drawContext->clear(&fullRect, kColor2, false);
128 if (!check_rect(drawContext, fullRect, kColor2, &actualValue, &failX, &failY)) {
133 if (!reset_dc(&drawContext, &rtKeepAlive, context, kW, kH)) {
138 drawContext->clear(&fullRect, kColor1, false);
139 drawContext->clear(&mid1Rect, kColor1, false);
140 if (!check_rect(drawContext, fullRect, kColor1, &actualValue, &failX, &failY)) {
145 if (!reset_dc(&drawContext, &rtKeepAlive, context, kW, kH)) {
150 drawContext->clear(&mid1Rect, kColor1, false);
151 drawContext->clear(&fullRect, kColor1, false);
152 if (!check_rect(drawContext, fullRect, kColor1, &actualValue, &failX, &failY)) {
157 if (!reset_dc(&drawContext, &rtKeepAlive, context, kW, kH)) {
162 drawContext->clear(&fullRect, kColor1, false);
163 drawContext->clear(&mid1Rect, kColor2, false);
164 if (!check_rect(drawContext, mid1Rect, kColor2, &actualValue, &failX, &failY)) {
168 if (!check_rect(drawContext, outerLeftEdge, kColor1, &actualValue, &failX, &failY) ||
169 !check_rect(drawContext, outerTopEdge, kColor1, &actualValue, &failX, &failY) ||
170 !check_rect(drawContext, outerRightEdge, kColor1, &actualValue, &failX, &failY) ||
171 !check_rect(drawContext, outerBottomEdge, kColor1, &actualValue, &failX, &failY)) {
176 if (!reset_dc(&drawContext, &rtKeepAlive, context, kW, kH)) {
181 drawContext->clear(&mid1Rect, kColor2, false);
182 drawContext->clear(&fullRect, kColor1, false);
183 if (!check_rect(drawContext, fullRect, kColor1, &actualValue, &failX, &failY)) {
188 if (!reset_dc(&drawContext, &rtKeepAlive, context, kW, kH)) {
194 drawContext->clear(&fullRect, kColor1, false);
195 drawContext->clear(&mid1Rect, kColor2, false);
196 drawContext->clear(&mid2Rect, kColor1, false);
197 if (!check_rect(drawContext, mid2Rect, kColor1, &actualValue, &failX, &failY)) {
201 if (!check_rect(drawContext, innerLeftEdge, kColor2, &actualValue, &failX, &failY) ||
202 !check_rect(drawContext, innerTopEdge, kColor2, &actualValue, &failX, &failY) ||
203 !check_rect(drawContext, innerRightEdge, kColor2, &actualValue, &failX, &failY) ||
204 !check_rect(drawContext, innerBottomEdge, kColor2, &actualValue, &failX, &failY)) {
208 if (!check_rect(drawContext, outerLeftEdge, kColor1, &actualValue, &failX, &failY) ||
209 !check_rect(drawContext, outerTopEdge, kColor1, &actualValue, &failX, &failY) ||
210 !check_rect(drawContext, outerRightEdge, kColor1, &actualValue, &failX, &failY) ||
211 !check_rect(drawContext, outerBottomEdge, kColor1, &actualValue, &failX, &failY)) {
216 if (!reset_dc(&drawContext, &rtKeepAlive, context, kW, kH)) {
221 drawContext->clear(&fullRect, kColor1, false);
222 drawContext->clear(&mid2Rect, kColor1, false);
223 drawContext->clear(&mid1Rect, kColor2, false);
224 if (!check_rect(drawContext, mid1Rect, kColor2, &actualValue, &failX, &failY)) {
228 if (!check_rect(drawContext, outerLeftEdge, kColor1, &actualValue, &failX, &failY) ||
229 !check_rect(drawContext, outerTopEdge, kColor1, &actualValue, &failX, &failY) ||
230 !check_rect(drawContext, outerRightEdge, kColor1, &actualValue, &failX, &failY) ||
231 !check_rect(drawContext, outerBottomEdge, kColor1, &actualValue, &failX, &failY)) {