bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
Ben Wagner | 1a462bd | 2018-03-12 13:46:21 -0400 | [diff] [blame] | 8 | #include "Test.h" |
| 9 | |
Ben Wagner | 501c17c | 2018-03-12 20:04:31 +0000 | [diff] [blame^] | 10 | #if SK_SUPPORT_GPU |
| 11 | #include "GrContext.h" |
| 12 | #include "GrRenderTargetContext.h" |
| 13 | |
| 14 | #include "SkCanvas.h" |
| 15 | #include "SkSurface.h" |
Robert Phillips | dbfecd0 | 2017-10-18 15:44:08 -0400 | [diff] [blame] | 16 | |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 17 | static bool check_rect(GrRenderTargetContext* rtc, const SkIRect& rect, uint32_t expectedValue, |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 18 | uint32_t* actualValue, int* failX, int* failY) { |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 19 | int w = rect.width(); |
| 20 | int h = rect.height(); |
Ben Wagner | 7ecc596 | 2016-11-02 17:07:33 -0400 | [diff] [blame] | 21 | std::unique_ptr<uint32_t[]> pixels(new uint32_t[w * h]); |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 22 | memset(pixels.get(), ~expectedValue, sizeof(uint32_t) * w * h); |
Robert Phillips | 301431d | 2017-03-29 12:08:49 -0400 | [diff] [blame] | 23 | |
| 24 | SkImageInfo dstInfo = SkImageInfo::Make(w, h, kRGBA_8888_SkColorType, kPremul_SkAlphaType); |
| 25 | |
| 26 | if (!rtc->readPixels(dstInfo, pixels.get(), 0, rect.fLeft, rect.fTop)) { |
| 27 | return false; |
| 28 | } |
| 29 | |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 30 | for (int y = 0; y < h; ++y) { |
| 31 | for (int x = 0; x < w; ++x) { |
| 32 | uint32_t pixel = pixels.get()[y * w + x]; |
| 33 | if (pixel != expectedValue) { |
| 34 | *actualValue = pixel; |
| 35 | *failX = x + rect.fLeft; |
| 36 | *failY = y + rect.fTop; |
| 37 | return false; |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 | return true; |
| 42 | } |
| 43 | |
Robert Phillips | e4d45bf | 2017-06-02 14:53:40 -0400 | [diff] [blame] | 44 | sk_sp<GrRenderTargetContext> newRTC(GrContext* context, int w, int h) { |
Robert Phillips | 0c4b7b1 | 2018-03-06 08:20:37 -0500 | [diff] [blame] | 45 | return context->contextPriv().makeDeferredRenderTargetContext( |
| 46 | SkBackingFit::kExact, w, h, |
| 47 | kRGBA_8888_GrPixelConfig, nullptr); |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 48 | } |
| 49 | |
Brian Salomon | 43f8bf0 | 2017-10-18 08:33:29 -0400 | [diff] [blame] | 50 | static void clear_op_test(skiatest::Reporter* reporter, GrContext* context) { |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 51 | static const int kW = 10; |
| 52 | static const int kH = 10; |
| 53 | |
| 54 | SkIRect fullRect = SkIRect::MakeWH(kW, kH); |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 55 | sk_sp<GrRenderTargetContext> rtContext; |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 56 | |
| 57 | // A rectangle that is inset by one on all sides and the 1-pixel wide rectangles that surround |
| 58 | // it. |
| 59 | SkIRect mid1Rect = SkIRect::MakeXYWH(1, 1, kW-2, kH-2); |
| 60 | SkIRect outerLeftEdge = SkIRect::MakeXYWH(0, 0, 1, kH); |
| 61 | SkIRect outerTopEdge = SkIRect::MakeXYWH(0, 0, kW, 1); |
| 62 | SkIRect outerRightEdge = SkIRect::MakeXYWH(kW-1, 0, 1, kH); |
| 63 | SkIRect outerBottomEdge = SkIRect::MakeXYWH(0, kH-1, kW, 1); |
| 64 | |
| 65 | // A rectangle that is inset by two on all sides and the 1-pixel wide rectangles that surround |
| 66 | // it. |
| 67 | SkIRect mid2Rect = SkIRect::MakeXYWH(2, 2, kW-4, kH-4); |
| 68 | SkIRect innerLeftEdge = SkIRect::MakeXYWH(1, 1, 1, kH-2); |
| 69 | SkIRect innerTopEdge = SkIRect::MakeXYWH(1, 1, kW-2, 1); |
| 70 | SkIRect innerRightEdge = SkIRect::MakeXYWH(kW-2, 1, 1, kH-2); |
| 71 | SkIRect innerBottomEdge = SkIRect::MakeXYWH(1, kH-2, kW-2, 1); |
| 72 | |
| 73 | uint32_t actualValue; |
| 74 | int failX, failY; |
| 75 | |
| 76 | static const GrColor kColor1 = 0xABCDEF01; |
| 77 | static const GrColor kColor2 = ~kColor1; |
| 78 | |
Robert Phillips | e4d45bf | 2017-06-02 14:53:40 -0400 | [diff] [blame] | 79 | rtContext = newRTC(context, kW, kH); |
| 80 | SkASSERT(rtContext); |
| 81 | |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 82 | // Check a full clear |
Chris Dalton | 344e903 | 2017-12-11 15:42:09 -0700 | [diff] [blame] | 83 | rtContext->clear(&fullRect, kColor1, GrRenderTargetContext::CanClearFullscreen::kNo); |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 84 | if (!check_rect(rtContext.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 85 | ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor1, actualValue, |
| 86 | failX, failY); |
| 87 | } |
| 88 | |
Robert Phillips | e4d45bf | 2017-06-02 14:53:40 -0400 | [diff] [blame] | 89 | rtContext = newRTC(context, kW, kH); |
| 90 | SkASSERT(rtContext); |
| 91 | |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 92 | // Check two full clears, same color |
Chris Dalton | 344e903 | 2017-12-11 15:42:09 -0700 | [diff] [blame] | 93 | rtContext->clear(&fullRect, kColor1, GrRenderTargetContext::CanClearFullscreen::kNo); |
| 94 | rtContext->clear(&fullRect, kColor1, GrRenderTargetContext::CanClearFullscreen::kNo); |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 95 | if (!check_rect(rtContext.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 96 | ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor1, actualValue, |
| 97 | failX, failY); |
| 98 | } |
| 99 | |
Robert Phillips | e4d45bf | 2017-06-02 14:53:40 -0400 | [diff] [blame] | 100 | rtContext = newRTC(context, kW, kH); |
| 101 | SkASSERT(rtContext); |
| 102 | |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 103 | // Check two full clears, different colors |
Chris Dalton | 344e903 | 2017-12-11 15:42:09 -0700 | [diff] [blame] | 104 | rtContext->clear(&fullRect, kColor1, GrRenderTargetContext::CanClearFullscreen::kNo); |
| 105 | rtContext->clear(&fullRect, kColor2, GrRenderTargetContext::CanClearFullscreen::kNo); |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 106 | if (!check_rect(rtContext.get(), fullRect, kColor2, &actualValue, &failX, &failY)) { |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 107 | ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor2, actualValue, |
| 108 | failX, failY); |
| 109 | } |
| 110 | |
Robert Phillips | e4d45bf | 2017-06-02 14:53:40 -0400 | [diff] [blame] | 111 | rtContext = newRTC(context, kW, kH); |
| 112 | SkASSERT(rtContext); |
| 113 | |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 114 | // Test a full clear followed by a same color inset clear |
Chris Dalton | 344e903 | 2017-12-11 15:42:09 -0700 | [diff] [blame] | 115 | rtContext->clear(&fullRect, kColor1, GrRenderTargetContext::CanClearFullscreen::kNo); |
| 116 | rtContext->clear(&mid1Rect, kColor1, GrRenderTargetContext::CanClearFullscreen::kNo); |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 117 | if (!check_rect(rtContext.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 118 | ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor1, actualValue, |
| 119 | failX, failY); |
| 120 | } |
| 121 | |
Robert Phillips | e4d45bf | 2017-06-02 14:53:40 -0400 | [diff] [blame] | 122 | rtContext = newRTC(context, kW, kH); |
| 123 | SkASSERT(rtContext); |
| 124 | |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 125 | // Test a inset clear followed by same color full clear |
Chris Dalton | 344e903 | 2017-12-11 15:42:09 -0700 | [diff] [blame] | 126 | rtContext->clear(&mid1Rect, kColor1, GrRenderTargetContext::CanClearFullscreen::kNo); |
| 127 | rtContext->clear(&fullRect, kColor1, GrRenderTargetContext::CanClearFullscreen::kNo); |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 128 | if (!check_rect(rtContext.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 129 | ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor1, actualValue, |
| 130 | failX, failY); |
| 131 | } |
| 132 | |
Robert Phillips | e4d45bf | 2017-06-02 14:53:40 -0400 | [diff] [blame] | 133 | rtContext = newRTC(context, kW, kH); |
| 134 | SkASSERT(rtContext); |
| 135 | |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 136 | // Test a full clear followed by a different color inset clear |
Chris Dalton | 344e903 | 2017-12-11 15:42:09 -0700 | [diff] [blame] | 137 | rtContext->clear(&fullRect, kColor1, GrRenderTargetContext::CanClearFullscreen::kNo); |
| 138 | rtContext->clear(&mid1Rect, kColor2, GrRenderTargetContext::CanClearFullscreen::kNo); |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 139 | if (!check_rect(rtContext.get(), mid1Rect, kColor2, &actualValue, &failX, &failY)) { |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 140 | ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor2, actualValue, |
| 141 | failX, failY); |
| 142 | } |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 143 | if (!check_rect(rtContext.get(), outerLeftEdge, kColor1, &actualValue, &failX, &failY) || |
| 144 | !check_rect(rtContext.get(), outerTopEdge, kColor1, &actualValue, &failX, &failY) || |
| 145 | !check_rect(rtContext.get(), outerRightEdge, kColor1, &actualValue, &failX, &failY) || |
| 146 | !check_rect(rtContext.get(), outerBottomEdge, kColor1, &actualValue, &failX, &failY)) { |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 147 | ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor1, actualValue, |
| 148 | failX, failY); |
| 149 | } |
| 150 | |
Robert Phillips | e4d45bf | 2017-06-02 14:53:40 -0400 | [diff] [blame] | 151 | rtContext = newRTC(context, kW, kH); |
| 152 | SkASSERT(rtContext); |
| 153 | |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 154 | // Test a inset clear followed by a different full clear |
Chris Dalton | 344e903 | 2017-12-11 15:42:09 -0700 | [diff] [blame] | 155 | rtContext->clear(&mid1Rect, kColor2, GrRenderTargetContext::CanClearFullscreen::kNo); |
| 156 | rtContext->clear(&fullRect, kColor1, GrRenderTargetContext::CanClearFullscreen::kNo); |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 157 | if (!check_rect(rtContext.get(), fullRect, kColor1, &actualValue, &failX, &failY)) { |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 158 | ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor1, actualValue, |
| 159 | failX, failY); |
| 160 | } |
| 161 | |
Robert Phillips | e4d45bf | 2017-06-02 14:53:40 -0400 | [diff] [blame] | 162 | rtContext = newRTC(context, kW, kH); |
| 163 | SkASSERT(rtContext); |
| 164 | |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 165 | // Check three nested clears from largest to smallest where outermost and innermost are same |
| 166 | // color. |
Chris Dalton | 344e903 | 2017-12-11 15:42:09 -0700 | [diff] [blame] | 167 | rtContext->clear(&fullRect, kColor1, GrRenderTargetContext::CanClearFullscreen::kNo); |
| 168 | rtContext->clear(&mid1Rect, kColor2, GrRenderTargetContext::CanClearFullscreen::kNo); |
| 169 | rtContext->clear(&mid2Rect, kColor1, GrRenderTargetContext::CanClearFullscreen::kNo); |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 170 | if (!check_rect(rtContext.get(), mid2Rect, kColor1, &actualValue, &failX, &failY)) { |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 171 | ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor1, actualValue, |
| 172 | failX, failY); |
| 173 | } |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 174 | if (!check_rect(rtContext.get(), innerLeftEdge, kColor2, &actualValue, &failX, &failY) || |
| 175 | !check_rect(rtContext.get(), innerTopEdge, kColor2, &actualValue, &failX, &failY) || |
| 176 | !check_rect(rtContext.get(), innerRightEdge, kColor2, &actualValue, &failX, &failY) || |
| 177 | !check_rect(rtContext.get(), innerBottomEdge, kColor2, &actualValue, &failX, &failY)) { |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 178 | ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor2, actualValue, |
| 179 | failX, failY); |
| 180 | } |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 181 | if (!check_rect(rtContext.get(), outerLeftEdge, kColor1, &actualValue, &failX, &failY) || |
| 182 | !check_rect(rtContext.get(), outerTopEdge, kColor1, &actualValue, &failX, &failY) || |
| 183 | !check_rect(rtContext.get(), outerRightEdge, kColor1, &actualValue, &failX, &failY) || |
| 184 | !check_rect(rtContext.get(), outerBottomEdge, kColor1, &actualValue, &failX, &failY)) { |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 185 | ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor1, actualValue, |
| 186 | failX, failY); |
| 187 | } |
| 188 | |
Robert Phillips | e4d45bf | 2017-06-02 14:53:40 -0400 | [diff] [blame] | 189 | rtContext = newRTC(context, kW, kH); |
| 190 | SkASSERT(rtContext); |
| 191 | |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 192 | // Swap the order of the second two clears in the above test. |
Chris Dalton | 344e903 | 2017-12-11 15:42:09 -0700 | [diff] [blame] | 193 | rtContext->clear(&fullRect, kColor1, GrRenderTargetContext::CanClearFullscreen::kNo); |
| 194 | rtContext->clear(&mid2Rect, kColor1, GrRenderTargetContext::CanClearFullscreen::kNo); |
| 195 | rtContext->clear(&mid1Rect, kColor2, GrRenderTargetContext::CanClearFullscreen::kNo); |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 196 | if (!check_rect(rtContext.get(), mid1Rect, kColor2, &actualValue, &failX, &failY)) { |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 197 | ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor2, actualValue, |
| 198 | failX, failY); |
| 199 | } |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 200 | if (!check_rect(rtContext.get(), outerLeftEdge, kColor1, &actualValue, &failX, &failY) || |
| 201 | !check_rect(rtContext.get(), outerTopEdge, kColor1, &actualValue, &failX, &failY) || |
| 202 | !check_rect(rtContext.get(), outerRightEdge, kColor1, &actualValue, &failX, &failY) || |
| 203 | !check_rect(rtContext.get(), outerBottomEdge, kColor1, &actualValue, &failX, &failY)) { |
bsalomon | e63ffef | 2016-02-05 07:17:34 -0800 | [diff] [blame] | 204 | ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor1, actualValue, |
| 205 | failX, failY); |
| 206 | } |
| 207 | } |
Brian Salomon | 43f8bf0 | 2017-10-18 08:33:29 -0400 | [diff] [blame] | 208 | |
| 209 | DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ClearOp, reporter, ctxInfo) { |
| 210 | clear_op_test(reporter, ctxInfo.grContext()); |
| 211 | if (ctxInfo.backend() == kOpenGL_GrBackend) { |
| 212 | GrContextOptions options(ctxInfo.options()); |
| 213 | options.fUseDrawInsteadOfGLClear = GrContextOptions::Enable::kYes; |
| 214 | sk_gpu_test::GrContextFactory workaroundFactory(options); |
| 215 | clear_op_test(reporter, workaroundFactory.get(ctxInfo.type())); |
| 216 | } |
| 217 | } |
| 218 | |
Brian Salomon | 43f8bf0 | 2017-10-18 08:33:29 -0400 | [diff] [blame] | 219 | void fullscreen_clear_with_layer_test(skiatest::Reporter* reporter, GrContext* context) { |
| 220 | const SkImageInfo ii = SkImageInfo::Make(400, 77, kRGBA_8888_SkColorType, kPremul_SkAlphaType); |
| 221 | |
| 222 | sk_sp<SkSurface> surf = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, ii); |
| 223 | SkCanvas* canvas = surf->getCanvas(); |
| 224 | |
| 225 | SkPaint paints[2]; |
| 226 | paints[0].setColor(SK_ColorGREEN); |
| 227 | paints[1].setColor(SK_ColorGRAY); |
| 228 | |
| 229 | static const int kLeftX = 158; |
| 230 | static const int kMidX = 258; |
| 231 | static const int kRightX = 383; |
| 232 | static const int kTopY = 26; |
| 233 | static const int kBotY = 51; |
| 234 | |
| 235 | const SkRect rects[2] = { |
| 236 | { kLeftX, kTopY, kMidX, kBotY }, |
| 237 | { kMidX, kTopY, kRightX, kBotY }, |
| 238 | }; |
| 239 | |
| 240 | for (int i = 0; i < 2; ++i) { |
| 241 | // the bounds parameter is required to cause a full screen clear |
| 242 | canvas->saveLayer(&rects[i], nullptr); |
| 243 | canvas->drawRect(rects[i], paints[i]); |
| 244 | canvas->restore(); |
| 245 | } |
| 246 | |
| 247 | SkBitmap bm; |
| 248 | bm.allocPixels(ii, 0); |
| 249 | |
| 250 | SkAssertResult(surf->readPixels(bm, 0, 0)); |
| 251 | |
| 252 | bool isCorrect = true; |
| 253 | for (int y = kTopY; isCorrect && y < kBotY; ++y) { |
| 254 | const uint32_t* sl = bm.getAddr32(0, y); |
| 255 | |
| 256 | for (int x = kLeftX; x < kMidX; ++x) { |
| 257 | if (SK_ColorGREEN != sl[x]) { |
| 258 | isCorrect = false; |
| 259 | break; |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | for (int x = kMidX; x < kRightX; ++x) { |
| 264 | if (SK_ColorGRAY != sl[x]) { |
| 265 | isCorrect = false; |
| 266 | break; |
| 267 | } |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | REPORTER_ASSERT(reporter, isCorrect); |
| 272 | } |
| 273 | // From crbug.com/768134 |
| 274 | DEF_GPUTEST_FOR_RENDERING_CONTEXTS(FullScreenClearWithLayers, reporter, ctxInfo) { |
| 275 | fullscreen_clear_with_layer_test(reporter, ctxInfo.grContext()); |
| 276 | if (ctxInfo.backend() == kOpenGL_GrBackend) { |
| 277 | GrContextOptions options(ctxInfo.options()); |
| 278 | options.fUseDrawInsteadOfGLClear = GrContextOptions::Enable::kYes; |
| 279 | sk_gpu_test::GrContextFactory workaroundFactory(options); |
| 280 | fullscreen_clear_with_layer_test(reporter, workaroundFactory.get(ctxInfo.type())); |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | #endif |