| Robert Phillips | 9660108 | 2018-05-29 16:13:26 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018 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 | |
| 8 | #ifndef PromiseImageHelper_DEFINED |
| 9 | #define PromiseImageHelper_DEFINED |
| 10 | |
| Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 11 | #include "include/core/SkBitmap.h" |
| 12 | #include "include/core/SkDeferredDisplayListRecorder.h" |
| 13 | #include "include/core/SkPromiseImageTexture.h" |
| 14 | #include "include/core/SkYUVAIndex.h" |
| Brian Salomon | be0e42c | 2020-08-27 11:00:04 -0400 | [diff] [blame] | 15 | #include "include/core/SkYUVAPixmaps.h" |
| Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 16 | #include "include/core/SkYUVASizeInfo.h" |
| 17 | #include "include/gpu/GrBackendSurface.h" |
| 18 | #include "include/private/SkTArray.h" |
| 19 | #include "src/core/SkCachedData.h" |
| 20 | #include "src/core/SkTLazy.h" |
| Robert Phillips | 9660108 | 2018-05-29 16:13:26 -0400 | [diff] [blame] | 21 | |
| 22 | class GrContext; |
| Robert Phillips | 9660108 | 2018-05-29 16:13:26 -0400 | [diff] [blame] | 23 | class SkImage; |
| Mike Reed | 13711eb | 2020-07-14 17:16:32 -0400 | [diff] [blame] | 24 | class SkMipmap; |
| Robert Phillips | 9660108 | 2018-05-29 16:13:26 -0400 | [diff] [blame] | 25 | class SkPicture; |
| Robert Phillips | 1a57857 | 2020-07-13 13:17:09 -0400 | [diff] [blame] | 26 | class SkTaskGroup; |
| Jim Van Verth | 8f11e43 | 2018-10-18 14:36:59 -0400 | [diff] [blame] | 27 | struct SkYUVAIndex; |
| Robert Phillips | 9660108 | 2018-05-29 16:13:26 -0400 | [diff] [blame] | 28 | |
| Robert Phillips | 11c6767 | 2020-04-23 15:10:03 -0400 | [diff] [blame] | 29 | // This class acts as a proxy for a GrBackendTexture that backs an image. |
| 30 | // Whenever a promise image is created for the image, the promise image receives a ref to |
| 31 | // potentially several of these objects. Once all the promise images receive their done |
| 32 | // callbacks this object is deleted - removing the GrBackendTexture from VRAM. |
| 33 | // Note that while the DDLs are being created in the threads, the PromiseImageHelper holds |
| 34 | // a ref on all the PromiseImageCallbackContexts. However, once all the threads are done |
| 35 | // it drops all of its refs (via "reset"). |
| 36 | class PromiseImageCallbackContext : public SkRefCnt { |
| 37 | public: |
| Robert Phillips | d5f3c98 | 2020-07-07 13:18:47 -0400 | [diff] [blame] | 38 | PromiseImageCallbackContext(GrDirectContext* direct, GrBackendFormat backendFormat) |
| 39 | : fContext(direct) |
| Robert Phillips | 11c6767 | 2020-04-23 15:10:03 -0400 | [diff] [blame] | 40 | , fBackendFormat(backendFormat) {} |
| 41 | |
| Brian Salomon | d007281 | 2020-07-21 17:03:56 -0400 | [diff] [blame] | 42 | ~PromiseImageCallbackContext() override; |
| Robert Phillips | 11c6767 | 2020-04-23 15:10:03 -0400 | [diff] [blame] | 43 | |
| 44 | const GrBackendFormat& backendFormat() const { return fBackendFormat; } |
| 45 | |
| 46 | void setBackendTexture(const GrBackendTexture& backendTexture); |
| 47 | |
| Robert Phillips | d5f3c98 | 2020-07-07 13:18:47 -0400 | [diff] [blame] | 48 | void destroyBackendTexture(); |
| Robert Phillips | 11c6767 | 2020-04-23 15:10:03 -0400 | [diff] [blame] | 49 | |
| 50 | sk_sp<SkPromiseImageTexture> fulfill() { |
| 51 | SkASSERT(fUnreleasedFulfills >= 0); |
| 52 | ++fUnreleasedFulfills; |
| 53 | ++fTotalFulfills; |
| 54 | return fPromiseImageTexture; |
| 55 | } |
| 56 | |
| 57 | void release() { |
| 58 | SkASSERT(fUnreleasedFulfills > 0); |
| 59 | --fUnreleasedFulfills; |
| 60 | ++fTotalReleases; |
| 61 | } |
| 62 | |
| 63 | void done() { |
| 64 | ++fDoneCnt; |
| 65 | SkASSERT(fDoneCnt <= fNumImages); |
| 66 | } |
| 67 | |
| 68 | void wasAddedToImage() { fNumImages++; } |
| 69 | |
| 70 | const SkPromiseImageTexture* promiseImageTexture() const { |
| 71 | return fPromiseImageTexture.get(); |
| 72 | } |
| 73 | |
| 74 | static sk_sp<SkPromiseImageTexture> PromiseImageFulfillProc(void* textureContext) { |
| 75 | auto callbackContext = static_cast<PromiseImageCallbackContext*>(textureContext); |
| 76 | return callbackContext->fulfill(); |
| 77 | } |
| 78 | |
| 79 | static void PromiseImageReleaseProc(void* textureContext) { |
| 80 | auto callbackContext = static_cast<PromiseImageCallbackContext*>(textureContext); |
| 81 | callbackContext->release(); |
| 82 | } |
| 83 | |
| 84 | static void PromiseImageDoneProc(void* textureContext) { |
| 85 | auto callbackContext = static_cast<PromiseImageCallbackContext*>(textureContext); |
| 86 | callbackContext->done(); |
| 87 | callbackContext->unref(); |
| 88 | } |
| 89 | |
| 90 | private: |
| Robert Phillips | d5f3c98 | 2020-07-07 13:18:47 -0400 | [diff] [blame] | 91 | GrDirectContext* fContext; |
| Robert Phillips | 11c6767 | 2020-04-23 15:10:03 -0400 | [diff] [blame] | 92 | GrBackendFormat fBackendFormat; |
| 93 | sk_sp<SkPromiseImageTexture> fPromiseImageTexture; |
| 94 | int fNumImages = 0; |
| 95 | int fTotalFulfills = 0; |
| 96 | int fTotalReleases = 0; |
| 97 | int fUnreleasedFulfills = 0; |
| 98 | int fDoneCnt = 0; |
| 99 | |
| John Stiles | 7571f9e | 2020-09-02 22:42:33 -0400 | [diff] [blame] | 100 | using INHERITED = SkRefCnt; |
| Robert Phillips | 11c6767 | 2020-04-23 15:10:03 -0400 | [diff] [blame] | 101 | }; |
| 102 | |
| Robert Phillips | 9660108 | 2018-05-29 16:13:26 -0400 | [diff] [blame] | 103 | // This class consolidates tracking & extraction of the original image data from an skp, |
| 104 | // the upload of said data to the GPU and the fulfillment of promise images. |
| 105 | // |
| 106 | // The way this works is: |
| 107 | // the original skp is converted to SkData and all its image info is extracted into this |
| 108 | // class and only indices into this class are left in the SkData (via deflateSKP) |
| 109 | // |
| 110 | // Prior to replaying in threads, all the images stored in this class are uploaded to the |
| 111 | // gpu and PromiseImageCallbackContexts are created for them (via uploadAllToGPU) |
| 112 | // |
| 113 | // Each thread reinflates the SkData into an SkPicture replacing all the indices w/ |
| 114 | // promise images (all using the same GrBackendTexture and getting a ref to the |
| 115 | // appropriate PromiseImageCallbackContext) (via reinflateSKP). |
| 116 | // |
| 117 | // This class is then reset - dropping all of its refs on the PromiseImageCallbackContexts |
| 118 | // |
| 119 | // Each done callback unrefs its PromiseImageCallbackContext so, once all the promise images |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 120 | // are done, the PromiseImageCallbackContext is freed and its GrBackendTexture removed |
| Robert Phillips | 9660108 | 2018-05-29 16:13:26 -0400 | [diff] [blame] | 121 | // from VRAM |
| 122 | // |
| 123 | // Note: if DDLs are going to be replayed multiple times, the reset call can be delayed until |
| 124 | // all the replaying is complete. This will pin the GrBackendTextures in VRAM. |
| 125 | class DDLPromiseImageHelper { |
| 126 | public: |
| Brian Salomon | 59c60b0 | 2020-09-01 15:01:15 -0400 | [diff] [blame] | 127 | DDLPromiseImageHelper(const SkYUVAPixmapInfo::SupportedDataTypes& supportedYUVADataTypes) |
| 128 | : fSupportedYUVADataTypes(supportedYUVADataTypes) {} |
| Brian Salomon | 7d88f31 | 2019-02-28 10:03:03 -0500 | [diff] [blame] | 129 | ~DDLPromiseImageHelper() = default; |
| Robert Phillips | 9660108 | 2018-05-29 16:13:26 -0400 | [diff] [blame] | 130 | |
| 131 | // Convert the SkPicture into SkData replacing all the SkImages with an index. |
| 132 | sk_sp<SkData> deflateSKP(const SkPicture* inputPicture); |
| 133 | |
| Robert Phillips | d5f3c98 | 2020-07-07 13:18:47 -0400 | [diff] [blame] | 134 | void createCallbackContexts(GrDirectContext*); |
| Robert Phillips | 923181b | 2020-02-14 12:36:37 -0500 | [diff] [blame] | 135 | |
| Robert Phillips | d5f3c98 | 2020-07-07 13:18:47 -0400 | [diff] [blame] | 136 | void uploadAllToGPU(SkTaskGroup*, GrDirectContext*); |
| 137 | void deleteAllFromGPU(SkTaskGroup*, GrDirectContext*); |
| Robert Phillips | 9660108 | 2018-05-29 16:13:26 -0400 | [diff] [blame] | 138 | |
| 139 | // reinflate a deflated SKP, replacing all the indices with promise images. |
| 140 | sk_sp<SkPicture> reinflateSKP(SkDeferredDisplayListRecorder*, |
| 141 | SkData* compressedPicture, |
| 142 | SkTArray<sk_sp<SkImage>>* promiseImages) const; |
| 143 | |
| 144 | // Remove this class' refs on the PromiseImageCallbackContexts |
| 145 | void reset() { fImageInfo.reset(); } |
| 146 | |
| 147 | private: |
| Robert Phillips | 9660108 | 2018-05-29 16:13:26 -0400 | [diff] [blame] | 148 | // This is the information extracted into this class from the parsing of the skp file. |
| 149 | // Once it has all been uploaded to the GPU and distributed to the promise images, it |
| 150 | // is all dropped via "reset". |
| 151 | class PromiseImageInfo { |
| 152 | public: |
| Robert Phillips | f95e2f4 | 2020-04-17 16:20:55 -0400 | [diff] [blame] | 153 | PromiseImageInfo(int index, uint32_t originalUniqueID, const SkImageInfo& ii); |
| 154 | PromiseImageInfo(PromiseImageInfo&& other); |
| 155 | ~PromiseImageInfo(); |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 156 | |
| 157 | int index() const { return fIndex; } |
| 158 | uint32_t originalUniqueID() const { return fOriginalUniqueID; } |
| Brian Salomon | 5660e8b | 2020-08-25 12:40:32 -0400 | [diff] [blame] | 159 | bool isYUV() const { return fYUVAPixmaps.isValid(); } |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 160 | |
| 161 | int overallWidth() const { return fImageInfo.width(); } |
| 162 | int overallHeight() const { return fImageInfo.height(); } |
| 163 | SkColorType overallColorType() const { return fImageInfo.colorType(); } |
| 164 | SkAlphaType overallAlphaType() const { return fImageInfo.alphaType(); } |
| 165 | sk_sp<SkColorSpace> refOverallColorSpace() const { return fImageInfo.refColorSpace(); } |
| 166 | |
| Brian Salomon | 5660e8b | 2020-08-25 12:40:32 -0400 | [diff] [blame] | 167 | int numYUVAPlanes() const { |
| 168 | SkASSERT(this->isYUV()); |
| 169 | return fYUVAPixmaps.yuvaInfo().numPlanes(); |
| 170 | } |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 171 | SkYUVColorSpace yuvColorSpace() const { |
| 172 | SkASSERT(this->isYUV()); |
| Brian Salomon | 5660e8b | 2020-08-25 12:40:32 -0400 | [diff] [blame] | 173 | return fYUVAPixmaps.yuvaInfo().yuvColorSpace(); |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 174 | } |
| Jim Van Verth | 8f11e43 | 2018-10-18 14:36:59 -0400 | [diff] [blame] | 175 | const SkYUVAIndex* yuvaIndices() const { |
| 176 | SkASSERT(this->isYUV()); |
| Brian Salomon | 5660e8b | 2020-08-25 12:40:32 -0400 | [diff] [blame] | 177 | SkASSERT(fYUVAIndices[SkYUVAIndex::kY_Index].fIndex >= 0); |
| Jim Van Verth | 8f11e43 | 2018-10-18 14:36:59 -0400 | [diff] [blame] | 178 | return fYUVAIndices; |
| 179 | } |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 180 | const SkPixmap& yuvPixmap(int index) const { |
| 181 | SkASSERT(this->isYUV()); |
| Brian Salomon | 5660e8b | 2020-08-25 12:40:32 -0400 | [diff] [blame] | 182 | return fYUVAPixmaps.planes()[index]; |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 183 | } |
| Robert Phillips | f95e2f4 | 2020-04-17 16:20:55 -0400 | [diff] [blame] | 184 | |
| 185 | const SkBitmap& baseLevel() const { |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 186 | SkASSERT(!this->isYUV()); |
| Robert Phillips | f95e2f4 | 2020-04-17 16:20:55 -0400 | [diff] [blame] | 187 | return fBaseLevel; |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 188 | } |
| Robert Phillips | f95e2f4 | 2020-04-17 16:20:55 -0400 | [diff] [blame] | 189 | // This returns an array of all the available mipLevels - suitable for passing into |
| 190 | // createBackendTexture. |
| John Stiles | ec9b4aa | 2020-08-07 13:05:14 -0400 | [diff] [blame] | 191 | std::unique_ptr<SkPixmap[]> normalMipLevels() const; |
| Robert Phillips | f95e2f4 | 2020-04-17 16:20:55 -0400 | [diff] [blame] | 192 | int numMipLevels() const; |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 193 | |
| 194 | void setCallbackContext(int index, sk_sp<PromiseImageCallbackContext> callbackContext) { |
| Jim Van Verth | e24b587 | 2018-10-29 16:26:02 -0400 | [diff] [blame] | 195 | SkASSERT(index >= 0 && index < (this->isYUV() ? SkYUVASizeInfo::kMaxCount : 1)); |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 196 | fCallbackContexts[index] = callbackContext; |
| 197 | } |
| Brian Salomon | cdd8a0a | 2019-01-10 12:09:52 -0500 | [diff] [blame] | 198 | PromiseImageCallbackContext* callbackContext(int index) const { |
| Jim Van Verth | e24b587 | 2018-10-29 16:26:02 -0400 | [diff] [blame] | 199 | SkASSERT(index >= 0 && index < (this->isYUV() ? SkYUVASizeInfo::kMaxCount : 1)); |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 200 | return fCallbackContexts[index].get(); |
| 201 | } |
| 202 | sk_sp<PromiseImageCallbackContext> refCallbackContext(int index) const { |
| Jim Van Verth | e24b587 | 2018-10-29 16:26:02 -0400 | [diff] [blame] | 203 | SkASSERT(index >= 0 && index < (this->isYUV() ? SkYUVASizeInfo::kMaxCount : 1)); |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 204 | return fCallbackContexts[index]; |
| 205 | } |
| 206 | |
| Brian Salomon | 7e67dca | 2020-07-21 09:27:25 -0400 | [diff] [blame] | 207 | GrMipmapped mipMapped(int index) const { |
| Robert Phillips | f95e2f4 | 2020-04-17 16:20:55 -0400 | [diff] [blame] | 208 | if (this->isYUV()) { |
| Brian Salomon | 7e67dca | 2020-07-21 09:27:25 -0400 | [diff] [blame] | 209 | return GrMipmapped::kNo; |
| Robert Phillips | f95e2f4 | 2020-04-17 16:20:55 -0400 | [diff] [blame] | 210 | } |
| Brian Salomon | 7e67dca | 2020-07-21 09:27:25 -0400 | [diff] [blame] | 211 | return fMipLevels ? GrMipmapped::kYes : GrMipmapped::kNo; |
| Robert Phillips | f95e2f4 | 2020-04-17 16:20:55 -0400 | [diff] [blame] | 212 | } |
| Robert Phillips | 923181b | 2020-02-14 12:36:37 -0500 | [diff] [blame] | 213 | const GrBackendFormat& backendFormat(int index) const { |
| 214 | SkASSERT(index >= 0 && index < (this->isYUV() ? SkYUVASizeInfo::kMaxCount : 1)); |
| 215 | return fCallbackContexts[index]->backendFormat(); |
| 216 | } |
| Brian Salomon | 3f4cd77 | 2019-01-11 16:03:19 -0500 | [diff] [blame] | 217 | const SkPromiseImageTexture* promiseTexture(int index) const { |
| Jim Van Verth | e24b587 | 2018-10-29 16:26:02 -0400 | [diff] [blame] | 218 | SkASSERT(index >= 0 && index < (this->isYUV() ? SkYUVASizeInfo::kMaxCount : 1)); |
| Brian Salomon | 3f4cd77 | 2019-01-11 16:03:19 -0500 | [diff] [blame] | 219 | return fCallbackContexts[index]->promiseImageTexture(); |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 220 | } |
| 221 | |
| Mike Reed | 13711eb | 2020-07-14 17:16:32 -0400 | [diff] [blame] | 222 | void setMipLevels(const SkBitmap& baseLevel, std::unique_ptr<SkMipmap> mipLevels); |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 223 | |
| Brian Salomon | efb5f07 | 2020-07-28 21:06:43 -0400 | [diff] [blame] | 224 | /** Takes ownership of the plane data. */ |
| Brian Salomon | be0e42c | 2020-08-27 11:00:04 -0400 | [diff] [blame] | 225 | void setYUVPlanes(SkYUVAPixmaps yuvaPixmaps) { fYUVAPixmaps = std::move(yuvaPixmaps); } |
| Brian Salomon | 5660e8b | 2020-08-25 12:40:32 -0400 | [diff] [blame] | 226 | |
| 227 | /** Call after setYUVPlanes() and callback contexts have been installed. */ |
| 228 | void initYUVAIndices(); |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 229 | |
| 230 | private: |
| 231 | const int fIndex; // index in the 'fImageInfo' array |
| 232 | const uint32_t fOriginalUniqueID; // original ID for deduping |
| 233 | |
| 234 | const SkImageInfo fImageInfo; // info for the overarching image |
| 235 | |
| Robert Phillips | f95e2f4 | 2020-04-17 16:20:55 -0400 | [diff] [blame] | 236 | // CPU-side cache of a normal SkImage's mipmap levels |
| 237 | SkBitmap fBaseLevel; |
| Mike Reed | 13711eb | 2020-07-14 17:16:32 -0400 | [diff] [blame] | 238 | std::unique_ptr<SkMipmap> fMipLevels; |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 239 | |
| 240 | // CPU-side cache of a YUV SkImage's contents |
| Brian Salomon | be0e42c | 2020-08-27 11:00:04 -0400 | [diff] [blame] | 241 | SkYUVAPixmaps fYUVAPixmaps; |
| Brian Salomon | 5660e8b | 2020-08-25 12:40:32 -0400 | [diff] [blame] | 242 | SkYUVAIndex fYUVAIndices[SkYUVAIndex::kIndexCount] = {}; |
| Robert Phillips | e8e2bb1 | 2018-09-27 14:26:47 -0400 | [diff] [blame] | 243 | |
| Jim Van Verth | e24b587 | 2018-10-29 16:26:02 -0400 | [diff] [blame] | 244 | // Up to SkYUVASizeInfo::kMaxCount for a YUVA image. Only one for a normal image. |
| 245 | sk_sp<PromiseImageCallbackContext> fCallbackContexts[SkYUVASizeInfo::kMaxCount]; |
| Robert Phillips | 9660108 | 2018-05-29 16:13:26 -0400 | [diff] [blame] | 246 | }; |
| 247 | |
| 248 | // This stack-based context allows each thread to re-inflate the image indices into |
| 249 | // promise images while still using the same GrBackendTexture. |
| 250 | struct PerRecorderContext { |
| 251 | SkDeferredDisplayListRecorder* fRecorder; |
| 252 | const DDLPromiseImageHelper* fHelper; |
| 253 | SkTArray<sk_sp<SkImage>>* fPromiseImages; |
| 254 | }; |
| 255 | |
| Robert Phillips | d5f3c98 | 2020-07-07 13:18:47 -0400 | [diff] [blame] | 256 | static void CreateBETexturesForPromiseImage(GrDirectContext*, PromiseImageInfo*); |
| 257 | static void DeleteBETexturesForPromiseImage(GrDirectContext*, PromiseImageInfo*); |
| Robert Phillips | 923181b | 2020-02-14 12:36:37 -0500 | [diff] [blame] | 258 | |
| Robert Phillips | 923181b | 2020-02-14 12:36:37 -0500 | [diff] [blame] | 259 | static sk_sp<SkImage> CreatePromiseImages(const void* rawData, size_t length, void* ctxIn); |
| Robert Phillips | 9660108 | 2018-05-29 16:13:26 -0400 | [diff] [blame] | 260 | |
| 261 | bool isValidID(int id) const { return id >= 0 && id < fImageInfo.count(); } |
| 262 | const PromiseImageInfo& getInfo(int id) const { return fImageInfo[id]; } |
| Robert Phillips | d5f3c98 | 2020-07-07 13:18:47 -0400 | [diff] [blame] | 263 | void uploadImage(GrDirectContext*, PromiseImageInfo*); |
| Robert Phillips | 9660108 | 2018-05-29 16:13:26 -0400 | [diff] [blame] | 264 | |
| 265 | // returns -1 if not found |
| 266 | int findImage(SkImage* image) const; |
| 267 | |
| 268 | // returns -1 on failure |
| 269 | int addImage(SkImage* image); |
| 270 | |
| 271 | // returns -1 on failure |
| 272 | int findOrDefineImage(SkImage* image); |
| 273 | |
| Brian Salomon | 59c60b0 | 2020-09-01 15:01:15 -0400 | [diff] [blame] | 274 | SkYUVAPixmapInfo::SupportedDataTypes fSupportedYUVADataTypes; |
| Robert Phillips | 9660108 | 2018-05-29 16:13:26 -0400 | [diff] [blame] | 275 | SkTArray<PromiseImageInfo> fImageInfo; |
| 276 | }; |
| 277 | |
| 278 | #endif |