bsalomon@google.com | 686bcb8 | 2013-04-09 15:04:12 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 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 | |
bsalomon | a2c2323 | 2014-11-25 07:41:12 -0800 | [diff] [blame] | 8 | #include "SkTypes.h" |
| 9 | |
bsalomon@google.com | 686bcb8 | 2013-04-09 15:04:12 +0000 | [diff] [blame] | 10 | #if SK_SUPPORT_GPU |
| 11 | |
bsalomon@google.com | 686bcb8 | 2013-04-09 15:04:12 +0000 | [diff] [blame] | 12 | #include "GrContext.h" |
Greg Daniel | 7ef28f3 | 2017-04-20 16:41:55 +0000 | [diff] [blame] | 13 | #include "GrContextPriv.h" |
bsalomon | 091f60c | 2015-11-10 11:54:56 -0800 | [diff] [blame] | 14 | #include "GrGpu.h" |
Robert Phillips | 0bd24dc | 2018-01-16 08:06:32 -0500 | [diff] [blame] | 15 | #include "GrProxyProvider.h" |
Robert Phillips | 2890fbf | 2017-07-26 15:48:41 -0400 | [diff] [blame] | 16 | #include "GrRenderTarget.h" |
Brian Osman | 32342f0 | 2017-03-04 08:12:46 -0500 | [diff] [blame] | 17 | #include "GrResourceProvider.h" |
Greg Daniel | 7ef28f3 | 2017-04-20 16:41:55 +0000 | [diff] [blame] | 18 | #include "GrTest.h" |
bsalomon@google.com | 686bcb8 | 2013-04-09 15:04:12 +0000 | [diff] [blame] | 19 | #include "GrTexture.h" |
Brian Osman | 48c9919 | 2017-06-02 08:45:06 -0400 | [diff] [blame] | 20 | #include "SkMipMap.h" |
tfarina@chromium.org | 4ee16bf | 2014-01-10 22:08:27 +0000 | [diff] [blame] | 21 | #include "Test.h" |
bsalomon@google.com | 686bcb8 | 2013-04-09 15:04:12 +0000 | [diff] [blame] | 22 | |
bsalomon | a2c2323 | 2014-11-25 07:41:12 -0800 | [diff] [blame] | 23 | // Tests that GrSurface::asTexture(), GrSurface::asRenderTarget(), and static upcasting of texture |
| 24 | // and render targets to GrSurface all work as expected. |
bsalomon | 758586c | 2016-04-06 14:02:39 -0700 | [diff] [blame] | 25 | DEF_GPUTEST_FOR_NULLGL_CONTEXT(GrSurface, reporter, ctxInfo) { |
bsalomon | 8b7451a | 2016-05-11 06:33:06 -0700 | [diff] [blame] | 26 | GrContext* context = ctxInfo.grContext(); |
Robert Phillips | 6be756b | 2018-01-16 15:07:54 -0500 | [diff] [blame] | 27 | auto resourceProvider = context->contextPriv().resourceProvider(); |
Robert Phillips | f35fd8d | 2018-01-22 10:48:15 -0500 | [diff] [blame] | 28 | GrGpu* gpu = context->contextPriv().getGpu(); |
Robert Phillips | 6be756b | 2018-01-16 15:07:54 -0500 | [diff] [blame] | 29 | |
kkinnunen | 1530283 | 2015-12-01 04:35:26 -0800 | [diff] [blame] | 30 | GrSurfaceDesc desc; |
kkinnunen | 1530283 | 2015-12-01 04:35:26 -0800 | [diff] [blame] | 31 | desc.fFlags = kRenderTarget_GrSurfaceFlag; |
Robert Phillips | 16d8ec6 | 2017-07-27 16:16:25 -0400 | [diff] [blame] | 32 | desc.fOrigin = kBottomLeft_GrSurfaceOrigin; |
kkinnunen | 1530283 | 2015-12-01 04:35:26 -0800 | [diff] [blame] | 33 | desc.fWidth = 256; |
| 34 | desc.fHeight = 256; |
Robert Phillips | 16d8ec6 | 2017-07-27 16:16:25 -0400 | [diff] [blame] | 35 | desc.fConfig = kRGBA_8888_GrPixelConfig; |
Brian Salomon | bdecacf | 2018-02-02 20:32:49 -0500 | [diff] [blame] | 36 | desc.fSampleCnt = 1; |
Robert Phillips | 6be756b | 2018-01-16 15:07:54 -0500 | [diff] [blame] | 37 | sk_sp<GrSurface> texRT1 = resourceProvider->createTexture(desc, SkBudgeted::kNo); |
bsalomon | a2c2323 | 2014-11-25 07:41:12 -0800 | [diff] [blame] | 38 | |
Robert Phillips | e78b725 | 2017-04-06 07:59:41 -0400 | [diff] [blame] | 39 | REPORTER_ASSERT(reporter, texRT1.get() == texRT1->asRenderTarget()); |
| 40 | REPORTER_ASSERT(reporter, texRT1.get() == texRT1->asTexture()); |
kkinnunen | 1530283 | 2015-12-01 04:35:26 -0800 | [diff] [blame] | 41 | REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT1->asRenderTarget()) == |
| 42 | texRT1->asTexture()); |
| 43 | REPORTER_ASSERT(reporter, texRT1->asRenderTarget() == |
| 44 | static_cast<GrSurface*>(texRT1->asTexture())); |
| 45 | REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT1->asRenderTarget()) == |
| 46 | static_cast<GrSurface*>(texRT1->asTexture())); |
bsalomon | a2c2323 | 2014-11-25 07:41:12 -0800 | [diff] [blame] | 47 | |
kkinnunen | 1530283 | 2015-12-01 04:35:26 -0800 | [diff] [blame] | 48 | desc.fFlags = kNone_GrSurfaceFlags; |
Robert Phillips | 16d8ec6 | 2017-07-27 16:16:25 -0400 | [diff] [blame] | 49 | desc.fOrigin = kTopLeft_GrSurfaceOrigin; |
Robert Phillips | 6be756b | 2018-01-16 15:07:54 -0500 | [diff] [blame] | 50 | sk_sp<GrTexture> tex1 = resourceProvider->createTexture(desc, SkBudgeted::kNo); |
kkinnunen | 1530283 | 2015-12-01 04:35:26 -0800 | [diff] [blame] | 51 | REPORTER_ASSERT(reporter, nullptr == tex1->asRenderTarget()); |
Robert Phillips | e78b725 | 2017-04-06 07:59:41 -0400 | [diff] [blame] | 52 | REPORTER_ASSERT(reporter, tex1.get() == tex1->asTexture()); |
| 53 | REPORTER_ASSERT(reporter, static_cast<GrSurface*>(tex1.get()) == tex1->asTexture()); |
bsalomon@google.com | 686bcb8 | 2013-04-09 15:04:12 +0000 | [diff] [blame] | 54 | |
Robert Phillips | f35fd8d | 2018-01-22 10:48:15 -0500 | [diff] [blame] | 55 | GrBackendTexture backendTex = gpu->createTestingOnlyBackendTexture( |
Robert Phillips | d21b2a5 | 2017-12-12 13:01:25 -0500 | [diff] [blame] | 56 | nullptr, 256, 256, kRGBA_8888_GrPixelConfig, false, GrMipMapped::kNo); |
bsalomon | 091f60c | 2015-11-10 11:54:56 -0800 | [diff] [blame] | 57 | |
Brian Salomon | bdecacf | 2018-02-02 20:32:49 -0500 | [diff] [blame] | 58 | sk_sp<GrSurface> texRT2 = |
| 59 | resourceProvider->wrapRenderableBackendTexture(backendTex, 1, kBorrow_GrWrapOwnership); |
Greg Daniel | 7ef28f3 | 2017-04-20 16:41:55 +0000 | [diff] [blame] | 60 | |
bungeman | 6bd5284 | 2016-10-27 09:30:08 -0700 | [diff] [blame] | 61 | REPORTER_ASSERT(reporter, texRT2.get() == texRT2->asRenderTarget()); |
| 62 | REPORTER_ASSERT(reporter, texRT2.get() == texRT2->asTexture()); |
kkinnunen | 1530283 | 2015-12-01 04:35:26 -0800 | [diff] [blame] | 63 | REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT2->asRenderTarget()) == |
| 64 | texRT2->asTexture()); |
| 65 | REPORTER_ASSERT(reporter, texRT2->asRenderTarget() == |
| 66 | static_cast<GrSurface*>(texRT2->asTexture())); |
| 67 | REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT2->asRenderTarget()) == |
| 68 | static_cast<GrSurface*>(texRT2->asTexture())); |
bsalomon@google.com | 686bcb8 | 2013-04-09 15:04:12 +0000 | [diff] [blame] | 69 | |
Robert Phillips | f35fd8d | 2018-01-22 10:48:15 -0500 | [diff] [blame] | 70 | gpu->deleteTestingOnlyBackendTexture(&backendTex); |
bsalomon@google.com | 686bcb8 | 2013-04-09 15:04:12 +0000 | [diff] [blame] | 71 | } |
| 72 | |
Robert Phillips | b7b7e5f | 2017-05-22 13:23:19 -0400 | [diff] [blame] | 73 | // This test checks that the isConfigTexturable and isConfigRenderable are |
| 74 | // consistent with createTexture's result. |
| 75 | DEF_GPUTEST_FOR_ALL_CONTEXTS(GrSurfaceRenderability, reporter, ctxInfo) { |
| 76 | GrContext* context = ctxInfo.grContext(); |
Robert Phillips | 1afd4cd | 2018-01-08 13:40:32 -0500 | [diff] [blame] | 77 | GrProxyProvider* proxyProvider = context->contextPriv().proxyProvider(); |
Robert Phillips | 6be756b | 2018-01-16 15:07:54 -0500 | [diff] [blame] | 78 | GrResourceProvider* resourceProvider = context->contextPriv().resourceProvider(); |
Robert Phillips | b7b7e5f | 2017-05-22 13:23:19 -0400 | [diff] [blame] | 79 | const GrCaps* caps = context->caps(); |
| 80 | |
| 81 | GrPixelConfig configs[] = { |
| 82 | kUnknown_GrPixelConfig, |
| 83 | kAlpha_8_GrPixelConfig, |
Greg Daniel | ef59d87 | 2017-11-17 16:47:21 -0500 | [diff] [blame] | 84 | kAlpha_8_as_Alpha_GrPixelConfig, |
| 85 | kAlpha_8_as_Red_GrPixelConfig, |
Robert Phillips | b7b7e5f | 2017-05-22 13:23:19 -0400 | [diff] [blame] | 86 | kGray_8_GrPixelConfig, |
Greg Daniel | 7af060a | 2017-12-05 16:27:11 -0500 | [diff] [blame] | 87 | kGray_8_as_Lum_GrPixelConfig, |
| 88 | kGray_8_as_Red_GrPixelConfig, |
Robert Phillips | b7b7e5f | 2017-05-22 13:23:19 -0400 | [diff] [blame] | 89 | kRGB_565_GrPixelConfig, |
| 90 | kRGBA_4444_GrPixelConfig, |
| 91 | kRGBA_8888_GrPixelConfig, |
| 92 | kBGRA_8888_GrPixelConfig, |
| 93 | kSRGBA_8888_GrPixelConfig, |
| 94 | kSBGRA_8888_GrPixelConfig, |
Brian Osman | 10fc6fd | 2018-03-02 11:01:10 -0500 | [diff] [blame^] | 95 | kRGBA_1010102_GrPixelConfig, |
Robert Phillips | b7b7e5f | 2017-05-22 13:23:19 -0400 | [diff] [blame] | 96 | kRGBA_float_GrPixelConfig, |
| 97 | kRG_float_GrPixelConfig, |
| 98 | kAlpha_half_GrPixelConfig, |
Greg Daniel | ef59d87 | 2017-11-17 16:47:21 -0500 | [diff] [blame] | 99 | kAlpha_half_as_Red_GrPixelConfig, |
Robert Phillips | b7b7e5f | 2017-05-22 13:23:19 -0400 | [diff] [blame] | 100 | kRGBA_half_GrPixelConfig, |
| 101 | }; |
| 102 | SkASSERT(kGrPixelConfigCnt == SK_ARRAY_COUNT(configs)); |
| 103 | |
| 104 | GrSurfaceDesc desc; |
| 105 | desc.fWidth = 64; |
| 106 | desc.fHeight = 64; |
| 107 | |
| 108 | for (GrPixelConfig config : configs) { |
| 109 | for (GrSurfaceOrigin origin : { kTopLeft_GrSurfaceOrigin, kBottomLeft_GrSurfaceOrigin }) { |
| 110 | desc.fFlags = kNone_GrSurfaceFlags; |
| 111 | desc.fOrigin = origin; |
Robert Phillips | b7b7e5f | 2017-05-22 13:23:19 -0400 | [diff] [blame] | 112 | desc.fConfig = config; |
Brian Salomon | bdecacf | 2018-02-02 20:32:49 -0500 | [diff] [blame] | 113 | desc.fSampleCnt = 1; |
Robert Phillips | b7b7e5f | 2017-05-22 13:23:19 -0400 | [diff] [blame] | 114 | |
Robert Phillips | 3b3307f | 2017-05-24 07:44:02 -0400 | [diff] [blame] | 115 | sk_sp<GrSurface> tex = resourceProvider->createTexture(desc, SkBudgeted::kNo); |
Brian Salomon | 1c80e99 | 2018-01-29 09:50:47 -0500 | [diff] [blame] | 116 | bool ict = caps->isConfigTexturable(desc.fConfig); |
| 117 | REPORTER_ASSERT(reporter, SkToBool(tex) == ict, |
| 118 | "config:%d, tex:%d, isConfigTexturable:%d", config, SkToBool(tex), ict); |
Robert Phillips | b7b7e5f | 2017-05-22 13:23:19 -0400 | [diff] [blame] | 119 | |
Robert Phillips | 0bd24dc | 2018-01-16 08:06:32 -0500 | [diff] [blame] | 120 | sk_sp<GrTextureProxy> proxy = proxyProvider->createMipMapProxy( |
Greg Daniel | 3081508 | 2018-02-09 16:08:30 -0500 | [diff] [blame] | 121 | desc, SkBudgeted::kNo); |
Brian Osman | 48c9919 | 2017-06-02 08:45:06 -0400 | [diff] [blame] | 122 | REPORTER_ASSERT(reporter, SkToBool(proxy.get()) == |
| 123 | (caps->isConfigTexturable(desc.fConfig) && |
Brian Salomon | 5711133 | 2018-02-05 15:55:54 -0500 | [diff] [blame] | 124 | caps->mipMapSupport())); |
Brian Osman | 48c9919 | 2017-06-02 08:45:06 -0400 | [diff] [blame] | 125 | |
Robert Phillips | b7b7e5f | 2017-05-22 13:23:19 -0400 | [diff] [blame] | 126 | desc.fFlags = kRenderTarget_GrSurfaceFlag; |
Robert Phillips | 3b3307f | 2017-05-24 07:44:02 -0400 | [diff] [blame] | 127 | tex = resourceProvider->createTexture(desc, SkBudgeted::kNo); |
Brian Salomon | bdecacf | 2018-02-02 20:32:49 -0500 | [diff] [blame] | 128 | bool isRenderable = caps->isConfigRenderable(config); |
| 129 | REPORTER_ASSERT(reporter, SkToBool(tex) == isRenderable, |
| 130 | "config:%d, tex:%d, isRenderable:%d", config, SkToBool(tex), |
| 131 | isRenderable); |
Robert Phillips | b7b7e5f | 2017-05-22 13:23:19 -0400 | [diff] [blame] | 132 | |
Brian Salomon | bdecacf | 2018-02-02 20:32:49 -0500 | [diff] [blame] | 133 | desc.fSampleCnt = 2; |
Robert Phillips | 3b3307f | 2017-05-24 07:44:02 -0400 | [diff] [blame] | 134 | tex = resourceProvider->createTexture(desc, SkBudgeted::kNo); |
Brian Salomon | bdecacf | 2018-02-02 20:32:49 -0500 | [diff] [blame] | 135 | isRenderable = SkToBool(caps->getRenderTargetSampleCount(2, config)); |
| 136 | REPORTER_ASSERT(reporter, SkToBool(tex) == isRenderable, |
| 137 | "config:%d, tex:%d, isRenderable:%d", config, SkToBool(tex), |
| 138 | isRenderable); |
Robert Phillips | b7b7e5f | 2017-05-22 13:23:19 -0400 | [diff] [blame] | 139 | } |
| 140 | } |
| 141 | } |
Robert Phillips | b7b7e5f | 2017-05-22 13:23:19 -0400 | [diff] [blame] | 142 | |
Brian Salomon | d17b4a6 | 2017-05-23 16:53:47 -0400 | [diff] [blame] | 143 | #include "GrDrawingManager.h" |
| 144 | #include "GrSurfaceProxy.h" |
| 145 | #include "GrTextureContext.h" |
| 146 | |
| 147 | DEF_GPUTEST_FOR_RENDERING_CONTEXTS(InitialTextureClear, reporter, context_info) { |
| 148 | static constexpr int kSize = 100; |
| 149 | GrSurfaceDesc desc; |
| 150 | desc.fWidth = desc.fHeight = kSize; |
| 151 | std::unique_ptr<uint32_t[]> data(new uint32_t[kSize * kSize]); |
Robert Phillips | 0bd24dc | 2018-01-16 08:06:32 -0500 | [diff] [blame] | 152 | |
Brian Salomon | d17b4a6 | 2017-05-23 16:53:47 -0400 | [diff] [blame] | 153 | GrContext* context = context_info.grContext(); |
Robert Phillips | 0bd24dc | 2018-01-16 08:06:32 -0500 | [diff] [blame] | 154 | GrProxyProvider* proxyProvider = context->contextPriv().proxyProvider(); |
| 155 | |
Brian Salomon | d17b4a6 | 2017-05-23 16:53:47 -0400 | [diff] [blame] | 156 | for (int c = 0; c <= kLast_GrPixelConfig; ++c) { |
| 157 | desc.fConfig = static_cast<GrPixelConfig>(c); |
Brian Salomon | 366093f | 2018-02-13 09:25:22 -0500 | [diff] [blame] | 158 | sk_sp<SkColorSpace> colorSpace; |
| 159 | if (GrPixelConfigIsSRGB(desc.fConfig)) { |
| 160 | colorSpace = SkColorSpace::MakeSRGB(); |
| 161 | } |
Brian Salomon | d17b4a6 | 2017-05-23 16:53:47 -0400 | [diff] [blame] | 162 | if (!context_info.grContext()->caps()->isConfigTexturable(desc.fConfig)) { |
| 163 | continue; |
| 164 | } |
| 165 | desc.fFlags = kPerformInitialClear_GrSurfaceFlag; |
| 166 | for (bool rt : {false, true}) { |
Brian Salomon | bdecacf | 2018-02-02 20:32:49 -0500 | [diff] [blame] | 167 | if (rt && !context->caps()->isConfigRenderable(desc.fConfig)) { |
Brian Salomon | d17b4a6 | 2017-05-23 16:53:47 -0400 | [diff] [blame] | 168 | continue; |
| 169 | } |
| 170 | desc.fFlags |= rt ? kRenderTarget_GrSurfaceFlag : kNone_GrSurfaceFlags; |
Greg Daniel | 90f28ec | 2017-09-25 12:26:58 -0400 | [diff] [blame] | 171 | for (GrSurfaceOrigin origin : |
| 172 | {kTopLeft_GrSurfaceOrigin, kBottomLeft_GrSurfaceOrigin}) { |
| 173 | desc.fOrigin = origin; |
Robert Phillips | 0bd24dc | 2018-01-16 08:06:32 -0500 | [diff] [blame] | 174 | for (auto fit : { SkBackingFit::kApprox, SkBackingFit::kExact }) { |
Greg Daniel | 90f28ec | 2017-09-25 12:26:58 -0400 | [diff] [blame] | 175 | // Try directly creating the texture. |
| 176 | // Do this twice in an attempt to hit the cache on the second time through. |
| 177 | for (int i = 0; i < 2; ++i) { |
Robert Phillips | 0bd24dc | 2018-01-16 08:06:32 -0500 | [diff] [blame] | 178 | sk_sp<GrTextureProxy> proxy = proxyProvider->createInstantiatedProxy( |
| 179 | desc, fit, SkBudgeted::kYes); |
| 180 | if (!proxy) { |
Greg Daniel | 90f28ec | 2017-09-25 12:26:58 -0400 | [diff] [blame] | 181 | continue; |
| 182 | } |
Greg Daniel | 90f28ec | 2017-09-25 12:26:58 -0400 | [diff] [blame] | 183 | auto texCtx = context->contextPriv().makeWrappedSurfaceContext( |
Brian Salomon | 366093f | 2018-02-13 09:25:22 -0500 | [diff] [blame] | 184 | std::move(proxy), colorSpace); |
Greg Daniel | 90f28ec | 2017-09-25 12:26:58 -0400 | [diff] [blame] | 185 | SkImageInfo info = SkImageInfo::Make( |
| 186 | kSize, kSize, kRGBA_8888_SkColorType, kPremul_SkAlphaType); |
| 187 | memset(data.get(), 0xAB, kSize * kSize * sizeof(uint32_t)); |
| 188 | if (texCtx->readPixels(info, data.get(), 0, 0, 0)) { |
| 189 | uint32_t cmp = GrPixelConfigIsOpaque(desc.fConfig) ? 0xFF000000 : 0; |
| 190 | for (int i = 0; i < kSize * kSize; ++i) { |
| 191 | if (cmp != data.get()[i]) { |
| 192 | ERRORF(reporter, "Failed on config %d", desc.fConfig); |
| 193 | break; |
Brian Salomon | d17b4a6 | 2017-05-23 16:53:47 -0400 | [diff] [blame] | 194 | } |
| 195 | } |
Brian Salomon | d17b4a6 | 2017-05-23 16:53:47 -0400 | [diff] [blame] | 196 | } |
Greg Daniel | 90f28ec | 2017-09-25 12:26:58 -0400 | [diff] [blame] | 197 | memset(data.get(), 0xBC, kSize * kSize * sizeof(uint32_t)); |
| 198 | // Here we overwrite the texture so that the second time through we |
| 199 | // test against recycling without reclearing. |
| 200 | if (0 == i) { |
| 201 | texCtx->writePixels(info, data.get(), 0, 0, 0); |
Greg Daniel | 52cb5fe | 2017-09-05 15:45:15 -0400 | [diff] [blame] | 202 | } |
Greg Daniel | 52cb5fe | 2017-09-05 15:45:15 -0400 | [diff] [blame] | 203 | } |
Greg Daniel | 90f28ec | 2017-09-25 12:26:58 -0400 | [diff] [blame] | 204 | context->purgeAllUnlockedResources(); |
| 205 | |
| 206 | // Try creating the texture as a deferred proxy. |
| 207 | for (int i = 0; i < 2; ++i) { |
| 208 | auto surfCtx = context->contextPriv().makeDeferredSurfaceContext( |
Brian Salomon | 366093f | 2018-02-13 09:25:22 -0500 | [diff] [blame] | 209 | desc, GrMipMapped::kNo, fit, SkBudgeted::kYes, colorSpace); |
Greg Daniel | 90f28ec | 2017-09-25 12:26:58 -0400 | [diff] [blame] | 210 | if (!surfCtx) { |
| 211 | continue; |
| 212 | } |
| 213 | SkImageInfo info = SkImageInfo::Make( |
| 214 | kSize, kSize, kRGBA_8888_SkColorType, kPremul_SkAlphaType); |
| 215 | memset(data.get(), 0xAB, kSize * kSize * sizeof(uint32_t)); |
| 216 | if (surfCtx->readPixels(info, data.get(), 0, 0, 0)) { |
| 217 | uint32_t cmp = GrPixelConfigIsOpaque(desc.fConfig) ? 0xFF000000 : 0; |
| 218 | for (int i = 0; i < kSize * kSize; ++i) { |
| 219 | if (cmp != data.get()[i]) { |
| 220 | ERRORF(reporter, "Failed on config %d", desc.fConfig); |
| 221 | break; |
| 222 | } |
| 223 | } |
| 224 | } |
| 225 | // Here we overwrite the texture so that the second time through we |
| 226 | // test against recycling without reclearing. |
| 227 | if (0 == i) { |
| 228 | surfCtx->writePixels(info, data.get(), 0, 0, 0); |
| 229 | } |
| 230 | } |
| 231 | context->purgeAllUnlockedResources(); |
Brian Salomon | d17b4a6 | 2017-05-23 16:53:47 -0400 | [diff] [blame] | 232 | } |
| 233 | } |
| 234 | } |
| 235 | } |
| 236 | } |
bsalomon@google.com | 686bcb8 | 2013-04-09 15:04:12 +0000 | [diff] [blame] | 237 | #endif |