• Home
  • Raw
  • Download

Lines Matching refs:rtContext

75     sk_sp<GrRenderTargetContext> rtContext;  in clear_op_test()  local
101 rtContext = newRTC(context, kW, kH); in clear_op_test()
102 SkASSERT(rtContext); in clear_op_test()
105 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
106 if (!check_rect(rtContext.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
111 rtContext = newRTC(context, kW, kH); in clear_op_test()
112 SkASSERT(rtContext); in clear_op_test()
115 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
116 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
117 if (!check_rect(rtContext.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
122 rtContext = newRTC(context, kW, kH); in clear_op_test()
123 SkASSERT(rtContext); in clear_op_test()
126 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
127 rtContext->clear(&fullRect, kColor2f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
128 if (!check_rect(rtContext.get(), fullRect, kColor2, &actualValue, &failX, &failY)) { in clear_op_test()
133 rtContext = newRTC(context, kW, kH); in clear_op_test()
134 SkASSERT(rtContext); in clear_op_test()
137 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
138 rtContext->clear(&mid1Rect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
139 if (!check_rect(rtContext.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
144 rtContext = newRTC(context, kW, kH); in clear_op_test()
145 SkASSERT(rtContext); in clear_op_test()
148 rtContext->clear(&mid1Rect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
149 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
150 if (!check_rect(rtContext.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
155 rtContext = newRTC(context, kW, kH); in clear_op_test()
156 SkASSERT(rtContext); in clear_op_test()
159 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
160 rtContext->clear(&mid1Rect, kColor2f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
161 if (!check_rect(rtContext.get(), mid1Rect, kColor2, &actualValue, &failX, &failY)) { in clear_op_test()
165 if (!check_rect(rtContext.get(), outerLeftEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
166 !check_rect(rtContext.get(), outerTopEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
167 !check_rect(rtContext.get(), outerRightEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
168 !check_rect(rtContext.get(), outerBottomEdge, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
173 rtContext = newRTC(context, kW, kH); in clear_op_test()
174 SkASSERT(rtContext); in clear_op_test()
177 rtContext->clear(&mid1Rect, kColor2f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
178 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
179 if (!check_rect(rtContext.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
184 rtContext = newRTC(context, kW, kH); in clear_op_test()
185 SkASSERT(rtContext); in clear_op_test()
189 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
190 rtContext->clear(&mid1Rect, kColor2f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
191 rtContext->clear(&mid2Rect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
192 if (!check_rect(rtContext.get(), mid2Rect, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
196 if (!check_rect(rtContext.get(), innerLeftEdge, kColor2, &actualValue, &failX, &failY) || in clear_op_test()
197 !check_rect(rtContext.get(), innerTopEdge, kColor2, &actualValue, &failX, &failY) || in clear_op_test()
198 !check_rect(rtContext.get(), innerRightEdge, kColor2, &actualValue, &failX, &failY) || in clear_op_test()
199 !check_rect(rtContext.get(), innerBottomEdge, kColor2, &actualValue, &failX, &failY)) { in clear_op_test()
203 if (!check_rect(rtContext.get(), outerLeftEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
204 !check_rect(rtContext.get(), outerTopEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
205 !check_rect(rtContext.get(), outerRightEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
206 !check_rect(rtContext.get(), outerBottomEdge, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()
211 rtContext = newRTC(context, kW, kH); in clear_op_test()
212 SkASSERT(rtContext); in clear_op_test()
215 rtContext->clear(&fullRect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
216 rtContext->clear(&mid2Rect, kColor1f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
217 rtContext->clear(&mid1Rect, kColor2f, GrRenderTargetContext::CanClearFullscreen::kNo); in clear_op_test()
218 if (!check_rect(rtContext.get(), mid1Rect, kColor2, &actualValue, &failX, &failY)) { in clear_op_test()
222 if (!check_rect(rtContext.get(), outerLeftEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
223 !check_rect(rtContext.get(), outerTopEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
224 !check_rect(rtContext.get(), outerRightEdge, kColor1, &actualValue, &failX, &failY) || in clear_op_test()
225 !check_rect(rtContext.get(), outerBottomEdge, kColor1, &actualValue, &failX, &failY)) { in clear_op_test()