robertphillips | 76948d4 | 2016-05-04 12:47:41 -0700 | [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 | |
Greg Daniel | f91aeb2 | 2019-06-18 09:58:02 -0400 | [diff] [blame] | 8 | #include "src/gpu/GrTextureProxy.h" |
Adlai Holler | 9e2c50e | 2021-02-09 14:41:52 -0500 | [diff] [blame] | 9 | #include "src/gpu/GrTextureProxyPriv.h" |
robertphillips | 76948d4 | 2016-05-04 12:47:41 -0700 | [diff] [blame] | 10 | |
Robert Phillips | 4e105e2 | 2020-07-16 09:18:50 -0400 | [diff] [blame] | 11 | #include "include/gpu/GrDirectContext.h" |
Adlai Holler | 9e2c50e | 2021-02-09 14:41:52 -0500 | [diff] [blame] | 12 | #include "src/gpu/GrDeferredProxyUploader.h" |
Adlai Holler | a069304 | 2020-10-14 11:23:11 -0400 | [diff] [blame] | 13 | #include "src/gpu/GrDirectContextPriv.h" |
Robert Phillips | 1a82a4e | 2021-07-01 10:27:44 -0400 | [diff] [blame] | 14 | #include "src/gpu/GrGpuResourcePriv.h" |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 15 | #include "src/gpu/GrProxyProvider.h" |
Brian Salomon | f7f5433 | 2020-07-28 09:23:35 -0400 | [diff] [blame] | 16 | #include "src/gpu/GrSurface.h" |
Brian Salomon | 4cfae3b | 2020-07-23 10:33:24 -0400 | [diff] [blame] | 17 | #include "src/gpu/GrTexture.h" |
robertphillips | 76948d4 | 2016-05-04 12:47:41 -0700 | [diff] [blame] | 18 | |
Brian Salomon | 58389b9 | 2018-03-07 13:01:25 -0500 | [diff] [blame] | 19 | // Deferred version - no data |
Brian Salomon | beb7f52 | 2019-08-30 16:19:42 -0400 | [diff] [blame] | 20 | GrTextureProxy::GrTextureProxy(const GrBackendFormat& format, |
Brian Salomon | a56a746 | 2020-02-07 14:17:25 -0500 | [diff] [blame] | 21 | SkISize dimensions, |
Brian Salomon | 7e67dca | 2020-07-21 09:27:25 -0400 | [diff] [blame] | 22 | GrMipmapped mipMapped, |
Brian Salomon | a6db510 | 2020-07-21 09:56:23 -0400 | [diff] [blame] | 23 | GrMipmapStatus mipmapStatus, |
Brian Salomon | beb7f52 | 2019-08-30 16:19:42 -0400 | [diff] [blame] | 24 | SkBackingFit fit, |
| 25 | SkBudgeted budgeted, |
| 26 | GrProtected isProtected, |
| 27 | GrInternalSurfaceFlags surfaceFlags, |
Robert Phillips | f10b2a5 | 2020-05-15 10:20:04 -0400 | [diff] [blame] | 28 | UseAllocator useAllocator, |
| 29 | GrDDLProvider creatingProvider) |
Brian Salomon | df1bd6d | 2020-03-26 20:37:01 -0400 | [diff] [blame] | 30 | : INHERITED(format, dimensions, fit, budgeted, isProtected, surfaceFlags, useAllocator) |
Brian Salomon | 40a4062 | 2020-07-21 10:32:07 -0400 | [diff] [blame] | 31 | , fMipmapped(mipMapped) |
Brian Salomon | 8c82a87 | 2020-07-21 12:09:58 -0400 | [diff] [blame] | 32 | , fMipmapStatus(mipmapStatus) |
| 33 | SkDEBUGCODE(, fInitialMipmapStatus(fMipmapStatus)) |
Robert Phillips | f10b2a5 | 2020-05-15 10:20:04 -0400 | [diff] [blame] | 34 | , fCreatingProvider(creatingProvider) |
Adlai Holler | 9e2c50e | 2021-02-09 14:41:52 -0500 | [diff] [blame] | 35 | , fProxyProvider(nullptr) |
| 36 | , fDeferredUploader(nullptr) { |
Stephen White | 3c0a50f | 2020-01-16 18:19:54 -0500 | [diff] [blame] | 37 | SkASSERT(!(fSurfaceFlags & GrInternalSurfaceFlags::kFramebufferOnly)); |
Brian Salomon | be1084b | 2021-01-26 13:29:30 -0500 | [diff] [blame] | 38 | if (this->textureType() == GrTextureType::kExternal) { |
| 39 | fSurfaceFlags |= GrInternalSurfaceFlags::kReadOnly; |
| 40 | } |
Stephen White | 3c0a50f | 2020-01-16 18:19:54 -0500 | [diff] [blame] | 41 | } |
Brian Salomon | 58389b9 | 2018-03-07 13:01:25 -0500 | [diff] [blame] | 42 | |
Chris Dalton | 706a6ff | 2017-11-29 22:01:06 -0700 | [diff] [blame] | 43 | // Lazy-callback version |
Brian Salomon | beb7f52 | 2019-08-30 16:19:42 -0400 | [diff] [blame] | 44 | GrTextureProxy::GrTextureProxy(LazyInstantiateCallback&& callback, |
| 45 | const GrBackendFormat& format, |
Brian Salomon | a56a746 | 2020-02-07 14:17:25 -0500 | [diff] [blame] | 46 | SkISize dimensions, |
Brian Salomon | 7e67dca | 2020-07-21 09:27:25 -0400 | [diff] [blame] | 47 | GrMipmapped mipMapped, |
Brian Salomon | a6db510 | 2020-07-21 09:56:23 -0400 | [diff] [blame] | 48 | GrMipmapStatus mipmapStatus, |
Brian Salomon | beb7f52 | 2019-08-30 16:19:42 -0400 | [diff] [blame] | 49 | SkBackingFit fit, |
| 50 | SkBudgeted budgeted, |
| 51 | GrProtected isProtected, |
| 52 | GrInternalSurfaceFlags surfaceFlags, |
Robert Phillips | f10b2a5 | 2020-05-15 10:20:04 -0400 | [diff] [blame] | 53 | UseAllocator useAllocator, |
| 54 | GrDDLProvider creatingProvider) |
Brian Salomon | df1bd6d | 2020-03-26 20:37:01 -0400 | [diff] [blame] | 55 | : INHERITED(std::move(callback), format, dimensions, fit, budgeted, isProtected, |
| 56 | surfaceFlags, useAllocator) |
Brian Salomon | 40a4062 | 2020-07-21 10:32:07 -0400 | [diff] [blame] | 57 | , fMipmapped(mipMapped) |
Brian Salomon | 8c82a87 | 2020-07-21 12:09:58 -0400 | [diff] [blame] | 58 | , fMipmapStatus(mipmapStatus) |
| 59 | SkDEBUGCODE(, fInitialMipmapStatus(fMipmapStatus)) |
Robert Phillips | f10b2a5 | 2020-05-15 10:20:04 -0400 | [diff] [blame] | 60 | , fCreatingProvider(creatingProvider) |
Adlai Holler | 9e2c50e | 2021-02-09 14:41:52 -0500 | [diff] [blame] | 61 | , fProxyProvider(nullptr) |
| 62 | , fDeferredUploader(nullptr) { |
Stephen White | 3c0a50f | 2020-01-16 18:19:54 -0500 | [diff] [blame] | 63 | SkASSERT(!(fSurfaceFlags & GrInternalSurfaceFlags::kFramebufferOnly)); |
Brian Salomon | be1084b | 2021-01-26 13:29:30 -0500 | [diff] [blame] | 64 | if (this->textureType() == GrTextureType::kExternal) { |
| 65 | fSurfaceFlags |= GrInternalSurfaceFlags::kReadOnly; |
| 66 | } |
Stephen White | 3c0a50f | 2020-01-16 18:19:54 -0500 | [diff] [blame] | 67 | } |
Chris Dalton | 706a6ff | 2017-11-29 22:01:06 -0700 | [diff] [blame] | 68 | |
| 69 | // Wrapped version |
Robert Phillips | f10b2a5 | 2020-05-15 10:20:04 -0400 | [diff] [blame] | 70 | GrTextureProxy::GrTextureProxy(sk_sp<GrSurface> surf, |
| 71 | UseAllocator useAllocator, |
| 72 | GrDDLProvider creatingProvider) |
Brian Salomon | df1bd6d | 2020-03-26 20:37:01 -0400 | [diff] [blame] | 73 | : INHERITED(std::move(surf), SkBackingFit::kExact, useAllocator) |
Brian Salomon | 4cfae3b | 2020-07-23 10:33:24 -0400 | [diff] [blame] | 74 | , fMipmapped(fTarget->asTexture()->mipmapped()) |
| 75 | , fMipmapStatus(fTarget->asTexture()->mipmapStatus()) |
Brian Salomon | 8c82a87 | 2020-07-21 12:09:58 -0400 | [diff] [blame] | 76 | SkDEBUGCODE(, fInitialMipmapStatus(fMipmapStatus)) |
Robert Phillips | f10b2a5 | 2020-05-15 10:20:04 -0400 | [diff] [blame] | 77 | , fCreatingProvider(creatingProvider) |
Adlai Holler | 9e2c50e | 2021-02-09 14:41:52 -0500 | [diff] [blame] | 78 | , fProxyProvider(nullptr) |
| 79 | , fDeferredUploader(nullptr) { |
Robert Phillips | ae7d3f3 | 2017-09-21 08:26:08 -0400 | [diff] [blame] | 80 | if (fTarget->getUniqueKey().isValid()) { |
Robert Phillips | 9da87e0 | 2019-02-04 13:26:26 -0500 | [diff] [blame] | 81 | fProxyProvider = fTarget->asTexture()->getContext()->priv().proxyProvider(); |
Robert Phillips | e5f7328 | 2019-06-18 17:15:04 -0400 | [diff] [blame] | 82 | fProxyProvider->adoptUniqueKeyFromSurface(this, fTarget.get()); |
Robert Phillips | ae7d3f3 | 2017-09-21 08:26:08 -0400 | [diff] [blame] | 83 | } |
Brian Salomon | be1084b | 2021-01-26 13:29:30 -0500 | [diff] [blame] | 84 | if (this->textureType() == GrTextureType::kExternal) { |
| 85 | fSurfaceFlags |= GrInternalSurfaceFlags::kReadOnly; |
| 86 | } |
Robert Phillips | ae7d3f3 | 2017-09-21 08:26:08 -0400 | [diff] [blame] | 87 | } |
| 88 | |
| 89 | GrTextureProxy::~GrTextureProxy() { |
| 90 | // Due to the order of cleanup the GrSurface this proxy may have wrapped may have gone away |
| 91 | // at this point. Zero out the pointer so the cache invalidation code doesn't try to use it. |
| 92 | fTarget = nullptr; |
Robert Phillips | 0790f8a | 2018-09-18 13:11:03 -0400 | [diff] [blame] | 93 | |
| 94 | // In DDL-mode, uniquely keyed proxies keep their key even after their originating |
| 95 | // proxy provider has gone away. In that case there is noone to send the invalid key |
| 96 | // message to (Note: in this case we don't want to remove its cached resource). |
| 97 | if (fUniqueKey.isValid() && fProxyProvider) { |
Robert Phillips | 427966a | 2018-12-20 17:20:43 -0500 | [diff] [blame] | 98 | fProxyProvider->processInvalidUniqueKey(fUniqueKey, this, |
| 99 | GrProxyProvider::InvalidateGPUResource::kNo); |
Robert Phillips | ae7d3f3 | 2017-09-21 08:26:08 -0400 | [diff] [blame] | 100 | } else { |
Robert Phillips | 1afd4cd | 2018-01-08 13:40:32 -0500 | [diff] [blame] | 101 | SkASSERT(!fProxyProvider); |
Robert Phillips | ae7d3f3 | 2017-09-21 08:26:08 -0400 | [diff] [blame] | 102 | } |
Robert Phillips | eee4d6e | 2017-06-05 09:26:07 -0400 | [diff] [blame] | 103 | } |
robertphillips | 76948d4 | 2016-05-04 12:47:41 -0700 | [diff] [blame] | 104 | |
Robert Phillips | 10d1721 | 2019-04-24 14:09:10 -0400 | [diff] [blame] | 105 | bool GrTextureProxy::instantiate(GrResourceProvider* resourceProvider) { |
Brian Salomon | beb7f52 | 2019-08-30 16:19:42 -0400 | [diff] [blame] | 106 | if (this->isLazy()) { |
Greg Daniel | 0a375db | 2018-02-01 12:21:39 -0500 | [diff] [blame] | 107 | return false; |
| 108 | } |
Brian Salomon | 40a4062 | 2020-07-21 10:32:07 -0400 | [diff] [blame] | 109 | if (!this->instantiateImpl(resourceProvider, 1, GrRenderable::kNo, fMipmapped, |
Chris Dalton | 0b68dda | 2019-11-07 21:08:03 -0700 | [diff] [blame] | 110 | fUniqueKey.isValid() ? &fUniqueKey : nullptr)) { |
Robert Phillips | eee4d6e | 2017-06-05 09:26:07 -0400 | [diff] [blame] | 111 | return false; |
robertphillips | 76948d4 | 2016-05-04 12:47:41 -0700 | [diff] [blame] | 112 | } |
Robert Phillips | eee4d6e | 2017-06-05 09:26:07 -0400 | [diff] [blame] | 113 | |
Robert Phillips | b520476 | 2019-06-19 14:12:13 -0400 | [diff] [blame] | 114 | SkASSERT(!this->peekRenderTarget()); |
| 115 | SkASSERT(this->peekTexture()); |
Robert Phillips | eee4d6e | 2017-06-05 09:26:07 -0400 | [diff] [blame] | 116 | return true; |
robertphillips | 76948d4 | 2016-05-04 12:47:41 -0700 | [diff] [blame] | 117 | } |
| 118 | |
Robert Phillips | 5af44de | 2017-07-18 14:49:38 -0400 | [diff] [blame] | 119 | sk_sp<GrSurface> GrTextureProxy::createSurface(GrResourceProvider* resourceProvider) const { |
Chris Dalton | 0b68dda | 2019-11-07 21:08:03 -0700 | [diff] [blame] | 120 | sk_sp<GrSurface> surface = this->createSurfaceImpl(resourceProvider, 1, GrRenderable::kNo, |
Brian Salomon | 40a4062 | 2020-07-21 10:32:07 -0400 | [diff] [blame] | 121 | fMipmapped); |
Robert Phillips | 5af44de | 2017-07-18 14:49:38 -0400 | [diff] [blame] | 122 | if (!surface) { |
| 123 | return nullptr; |
| 124 | } |
| 125 | |
Greg Daniel | e252f08 | 2017-10-23 16:05:23 -0400 | [diff] [blame] | 126 | SkASSERT(!surface->asRenderTarget()); |
Robert Phillips | 5af44de | 2017-07-18 14:49:38 -0400 | [diff] [blame] | 127 | SkASSERT(surface->asTexture()); |
| 128 | return surface; |
| 129 | } |
| 130 | |
Adlai Holler | 9e2c50e | 2021-02-09 14:41:52 -0500 | [diff] [blame] | 131 | void GrTextureProxyPriv::setDeferredUploader(std::unique_ptr<GrDeferredProxyUploader> uploader) { |
| 132 | SkASSERT(!fTextureProxy->fDeferredUploader); |
| 133 | fTextureProxy->fDeferredUploader = std::move(uploader); |
| 134 | } |
| 135 | |
| 136 | void GrTextureProxyPriv::scheduleUpload(GrOpFlushState* flushState) { |
| 137 | // The texture proxy's contents may already have been uploaded or instantiation may have failed |
| 138 | if (fTextureProxy->fDeferredUploader && fTextureProxy->isInstantiated()) { |
| 139 | fTextureProxy->fDeferredUploader->scheduleUpload(flushState, fTextureProxy); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | void GrTextureProxyPriv::resetDeferredUploader() { |
| 144 | SkASSERT(fTextureProxy->fDeferredUploader); |
| 145 | fTextureProxy->fDeferredUploader.reset(); |
| 146 | } |
| 147 | |
Brian Salomon | 8c82a87 | 2020-07-21 12:09:58 -0400 | [diff] [blame] | 148 | GrMipmapped GrTextureProxy::mipmapped() const { |
Brian Salomon | fd98c2c | 2018-07-31 17:25:29 -0400 | [diff] [blame] | 149 | if (this->isInstantiated()) { |
Brian Salomon | 4cfae3b | 2020-07-23 10:33:24 -0400 | [diff] [blame] | 150 | return this->peekTexture()->mipmapped(); |
Greg Daniel | 3b2ebbb | 2018-02-09 10:49:23 -0500 | [diff] [blame] | 151 | } |
Brian Salomon | 40a4062 | 2020-07-21 10:32:07 -0400 | [diff] [blame] | 152 | return fMipmapped; |
Greg Daniel | 3b2ebbb | 2018-02-09 10:49:23 -0500 | [diff] [blame] | 153 | } |
| 154 | |
Greg Daniel | 0eca74c | 2020-10-01 13:46:00 -0400 | [diff] [blame] | 155 | size_t GrTextureProxy::onUninstantiatedGpuMemorySize() const { |
| 156 | return GrSurface::ComputeSize(this->backendFormat(), this->dimensions(), |
| 157 | /*colorSamplesPerPixel=*/1, this->proxyMipmapped(), |
| 158 | !this->priv().isExact()); |
Robert Phillips | 8bc06d0 | 2016-11-01 17:28:40 -0400 | [diff] [blame] | 159 | } |
Robert Phillips | ae7d3f3 | 2017-09-21 08:26:08 -0400 | [diff] [blame] | 160 | |
Michael Ludwig | fcdd061 | 2019-11-25 08:34:31 -0500 | [diff] [blame] | 161 | bool GrTextureProxy::ProxiesAreCompatibleAsDynamicState(const GrSurfaceProxy* first, |
| 162 | const GrSurfaceProxy* second) { |
Michael Ludwig | 08bd1f7 | 2019-12-02 14:27:21 -0500 | [diff] [blame] | 163 | // In order to be compatible, the proxies should also have the same texture type. This is |
| 164 | // checked explicitly since the GrBackendFormat == operator does not compare texture type |
Greg Daniel | c71c796 | 2020-01-14 16:44:18 -0500 | [diff] [blame] | 165 | return first->backendFormat().textureType() == second->backendFormat().textureType() && |
Greg Daniel | 45723ac | 2018-11-30 10:12:43 -0500 | [diff] [blame] | 166 | first->backendFormat() == second->backendFormat(); |
| 167 | } |
| 168 | |
Robert Phillips | 1afd4cd | 2018-01-08 13:40:32 -0500 | [diff] [blame] | 169 | void GrTextureProxy::setUniqueKey(GrProxyProvider* proxyProvider, const GrUniqueKey& key) { |
Robert Phillips | ae7d3f3 | 2017-09-21 08:26:08 -0400 | [diff] [blame] | 170 | SkASSERT(key.isValid()); |
| 171 | SkASSERT(!fUniqueKey.isValid()); // proxies can only ever get one uniqueKey |
| 172 | |
Brian Salomon | b6a3a3b | 2019-04-01 12:29:34 -0400 | [diff] [blame] | 173 | if (fTarget && fSyncTargetKey) { |
Robert Phillips | adbe132 | 2018-01-17 13:35:46 -0500 | [diff] [blame] | 174 | if (!fTarget->getUniqueKey().isValid()) { |
| 175 | fTarget->resourcePriv().setUniqueKey(key); |
| 176 | } |
Robert Phillips | ae7d3f3 | 2017-09-21 08:26:08 -0400 | [diff] [blame] | 177 | SkASSERT(fTarget->getUniqueKey() == key); |
| 178 | } |
| 179 | |
| 180 | fUniqueKey = key; |
Robert Phillips | 1afd4cd | 2018-01-08 13:40:32 -0500 | [diff] [blame] | 181 | fProxyProvider = proxyProvider; |
Robert Phillips | ae7d3f3 | 2017-09-21 08:26:08 -0400 | [diff] [blame] | 182 | } |
| 183 | |
| 184 | void GrTextureProxy::clearUniqueKey() { |
| 185 | fUniqueKey.reset(); |
Robert Phillips | 1afd4cd | 2018-01-08 13:40:32 -0500 | [diff] [blame] | 186 | fProxyProvider = nullptr; |
Robert Phillips | ae7d3f3 | 2017-09-21 08:26:08 -0400 | [diff] [blame] | 187 | } |
| 188 | |
Brian Salomon | 63410e9 | 2020-03-23 18:32:50 -0400 | [diff] [blame] | 189 | GrSurfaceProxy::LazySurfaceDesc GrTextureProxy::callbackDesc() const { |
| 190 | SkISize dims; |
| 191 | SkBackingFit fit; |
| 192 | if (this->isFullyLazy()) { |
| 193 | fit = SkBackingFit::kApprox; |
| 194 | dims = {-1, -1}; |
| 195 | } else { |
| 196 | fit = this->isFunctionallyExact() ? SkBackingFit::kExact : SkBackingFit::kApprox; |
| 197 | dims = this->dimensions(); |
| 198 | } |
| 199 | return { |
| 200 | dims, |
| 201 | fit, |
| 202 | GrRenderable::kNo, |
Brian Salomon | 40a4062 | 2020-07-21 10:32:07 -0400 | [diff] [blame] | 203 | fMipmapped, |
Brian Salomon | 63410e9 | 2020-03-23 18:32:50 -0400 | [diff] [blame] | 204 | 1, |
| 205 | this->backendFormat(), |
Greg Daniel | e56d31f | 2021-08-16 09:29:56 -0400 | [diff] [blame^] | 206 | this->textureType(), |
Brian Salomon | 63410e9 | 2020-03-23 18:32:50 -0400 | [diff] [blame] | 207 | this->isProtected(), |
| 208 | this->isBudgeted(), |
| 209 | }; |
| 210 | } |
| 211 | |
Chris Dalton | 706a6ff | 2017-11-29 22:01:06 -0700 | [diff] [blame] | 212 | #ifdef SK_DEBUG |
Greg Daniel | 849dce1 | 2018-04-24 14:32:53 -0400 | [diff] [blame] | 213 | void GrTextureProxy::onValidateSurface(const GrSurface* surface) { |
Robert Phillips | e8fabb2 | 2018-02-04 14:33:21 -0500 | [diff] [blame] | 214 | SkASSERT(!surface->asRenderTarget()); |
| 215 | |
| 216 | // Anything that is checked here should be duplicated in GrTextureRenderTargetProxy's version |
| 217 | SkASSERT(surface->asTexture()); |
Chris Dalton | 95d8ceb | 2019-07-30 11:17:59 -0600 | [diff] [blame] | 218 | // It is possible to fulfill a non-mipmapped proxy with a mipmapped texture. |
Brian Salomon | 8c82a87 | 2020-07-21 12:09:58 -0400 | [diff] [blame] | 219 | SkASSERT(GrMipmapped::kNo == this->proxyMipmapped() || |
Brian Salomon | 4cfae3b | 2020-07-23 10:33:24 -0400 | [diff] [blame] | 220 | GrMipmapped::kYes == surface->asTexture()->mipmapped()); |
Brian Salomon | c67c31c | 2018-12-06 10:00:03 -0500 | [diff] [blame] | 221 | |
Brian Salomon | 4cfae3b | 2020-07-23 10:33:24 -0400 | [diff] [blame] | 222 | SkASSERT(surface->asTexture()->textureType() == this->textureType()); |
Brian Salomon | c67c31c | 2018-12-06 10:00:03 -0500 | [diff] [blame] | 223 | |
| 224 | GrInternalSurfaceFlags proxyFlags = fSurfaceFlags; |
Brian Salomon | f7f5433 | 2020-07-28 09:23:35 -0400 | [diff] [blame] | 225 | GrInternalSurfaceFlags surfaceFlags = surface->flags(); |
Chris Dalton | 3f7932e | 2019-08-19 00:39:13 -0600 | [diff] [blame] | 226 | SkASSERT(((int)proxyFlags & kGrInternalTextureFlagsMask) == |
| 227 | ((int)surfaceFlags & kGrInternalTextureFlagsMask)); |
Chris Dalton | 706a6ff | 2017-11-29 22:01:06 -0700 | [diff] [blame] | 228 | } |
Brian Salomon | c67c31c | 2018-12-06 10:00:03 -0500 | [diff] [blame] | 229 | |
Chris Dalton | 706a6ff | 2017-11-29 22:01:06 -0700 | [diff] [blame] | 230 | #endif |
| 231 | |