Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017 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 | */ |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 7 | |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 8 | #include "include/core/SkTypes.h" |
Derek Sollenberger | 7a86987 | 2017-06-27 15:37:25 -0400 | [diff] [blame] | 9 | |
| 10 | #if defined(SK_BUILD_FOR_ANDROID) && __ANDROID_API__ >= 26 |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 11 | #define GL_GLEXT_PROTOTYPES |
| 12 | #define EGL_EGLEXT_PROTOTYPES |
Greg Daniel | 54bfb18 | 2018-11-20 17:12:36 -0500 | [diff] [blame] | 13 | |
Greg Daniel | 54bfb18 | 2018-11-20 17:12:36 -0500 | [diff] [blame] | 14 | |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 15 | #include "src/gpu/GrAHardwareBufferImageGenerator.h" |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 16 | |
Derek Sollenberger | 7a86987 | 2017-06-27 15:37:25 -0400 | [diff] [blame] | 17 | #include <android/hardware_buffer.h> |
| 18 | |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 19 | #include "include/gpu/GrBackendSurface.h" |
Robert Phillips | b7bfbc2 | 2020-07-01 12:55:01 -0400 | [diff] [blame] | 20 | #include "include/gpu/GrDirectContext.h" |
| 21 | #include "include/gpu/GrRecordingContext.h" |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 22 | #include "include/gpu/gl/GrGLTypes.h" |
Ben Wagner | 21bca28 | 2019-05-15 10:15:52 -0400 | [diff] [blame] | 23 | #include "src/core/SkMessageBus.h" |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 24 | #include "src/gpu/GrAHardwareBufferUtils.h" |
Adlai Holler | a069304 | 2020-10-14 11:23:11 -0400 | [diff] [blame] | 25 | #include "src/gpu/GrDirectContextPriv.h" |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 26 | #include "src/gpu/GrProxyProvider.h" |
| 27 | #include "src/gpu/GrRecordingContextPriv.h" |
| 28 | #include "src/gpu/GrResourceCache.h" |
| 29 | #include "src/gpu/GrResourceProvider.h" |
| 30 | #include "src/gpu/GrResourceProviderPriv.h" |
Greg Daniel | 456f9b5 | 2020-03-05 19:14:18 +0000 | [diff] [blame] | 31 | #include "src/gpu/GrTexture.h" |
Greg Daniel | f91aeb2 | 2019-06-18 09:58:02 -0400 | [diff] [blame] | 32 | #include "src/gpu/GrTextureProxy.h" |
Brian Salomon | bc074a6 | 2020-03-18 10:06:13 -0400 | [diff] [blame] | 33 | #include "src/gpu/SkGr.h" |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 34 | #include "src/gpu/gl/GrGLDefines.h" |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 35 | |
| 36 | #include <EGL/egl.h> |
| 37 | #include <EGL/eglext.h> |
| 38 | #include <GLES/gl.h> |
| 39 | #include <GLES/glext.h> |
| 40 | |
Greg Daniel | 637c06a | 2018-09-12 09:44:25 -0400 | [diff] [blame] | 41 | #ifdef SK_VULKAN |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 42 | #include "include/gpu/vk/GrVkExtensions.h" |
| 43 | #include "src/gpu/vk/GrVkGpu.h" |
Greg Daniel | 637c06a | 2018-09-12 09:44:25 -0400 | [diff] [blame] | 44 | #endif |
| 45 | |
Stan Iliev | c01b5c7 | 2018-08-28 10:18:19 -0400 | [diff] [blame] | 46 | #define PROT_CONTENT_EXT_STR "EGL_EXT_protected_content" |
| 47 | #define EGL_PROTECTED_CONTENT_EXT 0x32C0 |
| 48 | |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 49 | std::unique_ptr<SkImageGenerator> GrAHardwareBufferImageGenerator::Make( |
Stan Iliev | 505dd57 | 2018-09-13 14:20:03 -0400 | [diff] [blame] | 50 | AHardwareBuffer* graphicBuffer, SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace, |
| 51 | GrSurfaceOrigin surfaceOrigin) { |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 52 | AHardwareBuffer_Desc bufferDesc; |
| 53 | AHardwareBuffer_describe(graphicBuffer, &bufferDesc); |
Greg Daniel | 173464d | 2019-02-06 15:30:34 -0500 | [diff] [blame] | 54 | |
| 55 | SkColorType colorType = |
| 56 | GrAHardwareBufferUtils::GetSkColorTypeFromBufferFormat(bufferDesc.format); |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 57 | SkImageInfo info = SkImageInfo::Make(bufferDesc.width, bufferDesc.height, colorType, |
| 58 | alphaType, std::move(colorSpace)); |
Greg Daniel | 173464d | 2019-02-06 15:30:34 -0500 | [diff] [blame] | 59 | |
Stan Iliev | c01b5c7 | 2018-08-28 10:18:19 -0400 | [diff] [blame] | 60 | bool createProtectedImage = 0 != (bufferDesc.usage & AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT); |
Stan Iliev | 505dd57 | 2018-09-13 14:20:03 -0400 | [diff] [blame] | 61 | return std::unique_ptr<SkImageGenerator>(new GrAHardwareBufferImageGenerator( |
| 62 | info, graphicBuffer, alphaType, createProtectedImage, |
| 63 | bufferDesc.format, surfaceOrigin)); |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | GrAHardwareBufferImageGenerator::GrAHardwareBufferImageGenerator(const SkImageInfo& info, |
Stan Iliev | 114b091 | 2018-08-31 14:02:55 -0400 | [diff] [blame] | 67 | AHardwareBuffer* hardwareBuffer, SkAlphaType alphaType, bool isProtectedContent, |
Stan Iliev | 505dd57 | 2018-09-13 14:20:03 -0400 | [diff] [blame] | 68 | uint32_t bufferFormat, GrSurfaceOrigin surfaceOrigin) |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 69 | : INHERITED(info) |
Stan Iliev | c01b5c7 | 2018-08-28 10:18:19 -0400 | [diff] [blame] | 70 | , fHardwareBuffer(hardwareBuffer) |
Stan Iliev | 114b091 | 2018-08-31 14:02:55 -0400 | [diff] [blame] | 71 | , fBufferFormat(bufferFormat) |
Stan Iliev | 505dd57 | 2018-09-13 14:20:03 -0400 | [diff] [blame] | 72 | , fIsProtectedContent(isProtectedContent) |
| 73 | , fSurfaceOrigin(surfaceOrigin) { |
Greg Daniel | f125111 | 2018-08-27 09:55:03 -0400 | [diff] [blame] | 74 | AHardwareBuffer_acquire(fHardwareBuffer); |
| 75 | } |
| 76 | |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 77 | GrAHardwareBufferImageGenerator::~GrAHardwareBufferImageGenerator() { |
Greg Daniel | f125111 | 2018-08-27 09:55:03 -0400 | [diff] [blame] | 78 | AHardwareBuffer_release(fHardwareBuffer); |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 79 | } |
| 80 | |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 81 | /////////////////////////////////////////////////////////////////////////////////////////////////// |
| 82 | |
Greg Daniel | 40903af | 2020-01-30 14:55:05 -0500 | [diff] [blame] | 83 | GrSurfaceProxyView GrAHardwareBufferImageGenerator::makeView(GrRecordingContext* context) { |
Robert Phillips | 9eb0002 | 2020-06-30 15:30:12 -0400 | [diff] [blame] | 84 | if (context->abandoned()) { |
Greg Daniel | 40903af | 2020-01-30 14:55:05 -0500 | [diff] [blame] | 85 | return {}; |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 86 | } |
| 87 | |
Robert Phillips | f8f45d9 | 2020-07-01 11:11:18 -0400 | [diff] [blame] | 88 | auto direct = context->asDirectContext(); |
Robert Phillips | 9338c60 | 2019-02-19 12:52:29 -0500 | [diff] [blame] | 89 | if (!direct) { |
Greg Daniel | 40903af | 2020-01-30 14:55:05 -0500 | [diff] [blame] | 90 | return {}; |
Robert Phillips | 9338c60 | 2019-02-19 12:52:29 -0500 | [diff] [blame] | 91 | } |
| 92 | |
| 93 | GrBackendFormat backendFormat = GrAHardwareBufferUtils::GetBackendFormat(direct, |
Greg Daniel | 173464d | 2019-02-06 15:30:34 -0500 | [diff] [blame] | 94 | fHardwareBuffer, |
| 95 | fBufferFormat, |
| 96 | false); |
| 97 | |
Robert Phillips | c80b0e9 | 2019-07-23 10:27:09 -0400 | [diff] [blame] | 98 | GrColorType grColorType = SkColorTypeToGrColorType(this->getInfo().colorType()); |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 99 | |
Greg Daniel | f125111 | 2018-08-27 09:55:03 -0400 | [diff] [blame] | 100 | int width = this->getInfo().width(); |
| 101 | int height = this->getInfo().height(); |
Greg Daniel | 9af948d | 2018-08-27 09:53:51 -0400 | [diff] [blame] | 102 | |
Robert Phillips | 9da87e0 | 2019-02-04 13:26:26 -0500 | [diff] [blame] | 103 | auto proxyProvider = context->priv().proxyProvider(); |
Greg Daniel | f125111 | 2018-08-27 09:55:03 -0400 | [diff] [blame] | 104 | |
| 105 | AHardwareBuffer* hardwareBuffer = fHardwareBuffer; |
| 106 | AHardwareBuffer_acquire(hardwareBuffer); |
| 107 | |
Brian Salomon | 67f0195 | 2019-02-14 13:05:25 -0500 | [diff] [blame] | 108 | class AutoAHBRelease { |
| 109 | public: |
| 110 | AutoAHBRelease(AHardwareBuffer* ahb) : fAhb(ahb) {} |
| 111 | // std::function() must be CopyConstructible, but ours should never actually be copied. |
| 112 | AutoAHBRelease(const AutoAHBRelease&) { SkASSERT(0); } |
| 113 | AutoAHBRelease(AutoAHBRelease&& that) : fAhb(that.fAhb) { that.fAhb = nullptr; } |
| 114 | ~AutoAHBRelease() { fAhb ? AHardwareBuffer_release(fAhb) : void(); } |
Greg Daniel | f125111 | 2018-08-27 09:55:03 -0400 | [diff] [blame] | 115 | |
Brian Salomon | 67f0195 | 2019-02-14 13:05:25 -0500 | [diff] [blame] | 116 | AutoAHBRelease& operator=(AutoAHBRelease&& that) { |
Adlai Holler | 5ba50af | 2020-04-29 21:11:14 -0400 | [diff] [blame] | 117 | fAhb = std::exchange(that.fAhb, nullptr); |
Brian Salomon | 67f0195 | 2019-02-14 13:05:25 -0500 | [diff] [blame] | 118 | return *this; |
| 119 | } |
| 120 | AutoAHBRelease& operator=(const AutoAHBRelease&) = delete; |
| 121 | |
| 122 | AHardwareBuffer* get() const { return fAhb; } |
| 123 | |
| 124 | private: |
| 125 | AHardwareBuffer* fAhb; |
| 126 | }; |
| 127 | |
| 128 | sk_sp<GrTextureProxy> texProxy = proxyProvider->createLazyProxy( |
Brian Salomon | 63410e9 | 2020-03-23 18:32:50 -0400 | [diff] [blame] | 129 | [direct, buffer = AutoAHBRelease(hardwareBuffer)]( |
| 130 | GrResourceProvider* resourceProvider, |
| 131 | const GrSurfaceProxy::LazySurfaceDesc& desc) |
| 132 | -> GrSurfaceProxy::LazyCallbackResult { |
Greg Daniel | 173464d | 2019-02-06 15:30:34 -0500 | [diff] [blame] | 133 | GrAHardwareBufferUtils::DeleteImageProc deleteImageProc = nullptr; |
Stan Iliev | a56b04a | 2019-08-01 14:22:34 -0400 | [diff] [blame] | 134 | GrAHardwareBufferUtils::UpdateImageProc updateImageProc = nullptr; |
| 135 | GrAHardwareBufferUtils::TexImageCtx texImageCtx = nullptr; |
Greg Daniel | f125111 | 2018-08-27 09:55:03 -0400 | [diff] [blame] | 136 | |
Brian Salomon | 63410e9 | 2020-03-23 18:32:50 -0400 | [diff] [blame] | 137 | bool isProtected = desc.fProtected == GrProtected::kYes; |
Greg Daniel | 173464d | 2019-02-06 15:30:34 -0500 | [diff] [blame] | 138 | GrBackendTexture backendTex = |
Brian Salomon | 63410e9 | 2020-03-23 18:32:50 -0400 | [diff] [blame] | 139 | GrAHardwareBufferUtils::MakeBackendTexture(direct, |
| 140 | buffer.get(), |
| 141 | desc.fDimensions.width(), |
| 142 | desc.fDimensions.height(), |
Greg Daniel | f125111 | 2018-08-27 09:55:03 -0400 | [diff] [blame] | 143 | &deleteImageProc, |
Stan Iliev | a56b04a | 2019-08-01 14:22:34 -0400 | [diff] [blame] | 144 | &updateImageProc, |
| 145 | &texImageCtx, |
Brian Salomon | 63410e9 | 2020-03-23 18:32:50 -0400 | [diff] [blame] | 146 | isProtected, |
| 147 | desc.fFormat, |
Greg Daniel | 173464d | 2019-02-06 15:30:34 -0500 | [diff] [blame] | 148 | false); |
Greg Daniel | f125111 | 2018-08-27 09:55:03 -0400 | [diff] [blame] | 149 | if (!backendTex.isValid()) { |
Brian Salomon | b6a3a3b | 2019-04-01 12:29:34 -0400 | [diff] [blame] | 150 | return {}; |
Greg Daniel | f125111 | 2018-08-27 09:55:03 -0400 | [diff] [blame] | 151 | } |
Stan Iliev | a56b04a | 2019-08-01 14:22:34 -0400 | [diff] [blame] | 152 | SkASSERT(deleteImageProc && texImageCtx); |
Greg Daniel | f125111 | 2018-08-27 09:55:03 -0400 | [diff] [blame] | 153 | |
Brian Salomon | aa6ca0a | 2019-01-24 16:03:07 -0500 | [diff] [blame] | 154 | // We make this texture cacheable to avoid recreating a GrTexture every time this |
Brian Salomon | 874b3fb | 2021-03-03 10:29:51 -0500 | [diff] [blame] | 155 | // is invoked. We know the owning SkImage will send an invalidation message when the |
| 156 | // image is destroyed, so the texture will be removed at that time. Note that the |
| 157 | // proxy will be keyed in GrProxyProvider but that cache just allows extant proxies |
| 158 | // to be reused. It does not retain them. After a flush the proxy will be deleted |
| 159 | // and a subsequent use of the image will recreate a new proxy around the GrTexture |
| 160 | // found in the GrResourceCache. |
| 161 | // This is the last use of GrWrapCacheable::kYes so if we actually cached the proxy |
| 162 | // we could remove wrapped GrGpuResource caching. |
Brian Salomon | c67c31c | 2018-12-06 10:00:03 -0500 | [diff] [blame] | 163 | sk_sp<GrTexture> tex = resourceProvider->wrapBackendTexture( |
Brian Salomon | 8a78e9c | 2020-03-27 10:42:15 -0400 | [diff] [blame] | 164 | backendTex, kBorrow_GrWrapOwnership, GrWrapCacheable::kYes, kRead_GrIOType); |
Greg Daniel | f125111 | 2018-08-27 09:55:03 -0400 | [diff] [blame] | 165 | if (!tex) { |
Stan Iliev | a56b04a | 2019-08-01 14:22:34 -0400 | [diff] [blame] | 166 | deleteImageProc(texImageCtx); |
Brian Salomon | b6a3a3b | 2019-04-01 12:29:34 -0400 | [diff] [blame] | 167 | return {}; |
Greg Daniel | f125111 | 2018-08-27 09:55:03 -0400 | [diff] [blame] | 168 | } |
| 169 | |
Greg Daniel | 637c06a | 2018-09-12 09:44:25 -0400 | [diff] [blame] | 170 | if (deleteImageProc) { |
Stan Iliev | a56b04a | 2019-08-01 14:22:34 -0400 | [diff] [blame] | 171 | tex->setRelease(deleteImageProc, texImageCtx); |
Greg Daniel | 637c06a | 2018-09-12 09:44:25 -0400 | [diff] [blame] | 172 | } |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 173 | |
Brian Salomon | 9c73e3d | 2019-08-15 10:55:49 -0400 | [diff] [blame] | 174 | return tex; |
Greg Daniel | f125111 | 2018-08-27 09:55:03 -0400 | [diff] [blame] | 175 | }, |
Greg Daniel | c113f00 | 2020-08-26 13:28:22 -0400 | [diff] [blame] | 176 | backendFormat, {width, height}, GrMipmapped::kNo, GrMipmapStatus::kNotAllocated, |
| 177 | GrInternalSurfaceFlags::kReadOnly, SkBackingFit::kExact, SkBudgeted::kNo, |
| 178 | GrProtected(fIsProtectedContent), GrSurfaceProxy::UseAllocator::kYes); |
Greg Daniel | f125111 | 2018-08-27 09:55:03 -0400 | [diff] [blame] | 179 | |
Brian Salomon | df1bd6d | 2020-03-26 20:37:01 -0400 | [diff] [blame] | 180 | GrSwizzle readSwizzle = context->priv().caps()->getReadSwizzle(backendFormat, grColorType); |
| 181 | |
Greg Daniel | 40903af | 2020-01-30 14:55:05 -0500 | [diff] [blame] | 182 | return GrSurfaceProxyView(std::move(texProxy), fSurfaceOrigin, readSwizzle); |
Greg Daniel | 3860cfd1 | 2018-09-07 09:13:54 -0400 | [diff] [blame] | 183 | } |
| 184 | |
Brian Salomon | bc074a6 | 2020-03-18 10:06:13 -0400 | [diff] [blame] | 185 | GrSurfaceProxyView GrAHardwareBufferImageGenerator::onGenerateTexture( |
| 186 | GrRecordingContext* context, |
| 187 | const SkImageInfo& info, |
| 188 | const SkIPoint& origin, |
Brian Salomon | 7e67dca | 2020-07-21 09:27:25 -0400 | [diff] [blame] | 189 | GrMipmapped mipMapped, |
Brian Salomon | bc074a6 | 2020-03-18 10:06:13 -0400 | [diff] [blame] | 190 | GrImageTexGenPolicy texGenPolicy) { |
Greg Daniel | 40903af | 2020-01-30 14:55:05 -0500 | [diff] [blame] | 191 | GrSurfaceProxyView texProxyView = this->makeView(context); |
| 192 | if (!texProxyView.proxy()) { |
Greg Daniel | cc104db | 2020-02-03 14:17:08 -0500 | [diff] [blame] | 193 | return {}; |
Greg Daniel | 3860cfd1 | 2018-09-07 09:13:54 -0400 | [diff] [blame] | 194 | } |
Greg Daniel | cc104db | 2020-02-03 14:17:08 -0500 | [diff] [blame] | 195 | SkASSERT(texProxyView.asTextureProxy()); |
Greg Daniel | 3860cfd1 | 2018-09-07 09:13:54 -0400 | [diff] [blame] | 196 | |
Brian Salomon | bc074a6 | 2020-03-18 10:06:13 -0400 | [diff] [blame] | 197 | if (texGenPolicy == GrImageTexGenPolicy::kDraw && origin.isZero() && |
Brian Salomon | 7e67dca | 2020-07-21 09:27:25 -0400 | [diff] [blame] | 198 | info.dimensions() == this->getInfo().dimensions() && mipMapped == GrMipmapped::kNo) { |
Brian Salomon | a54af92 | 2020-03-03 16:56:22 -0500 | [diff] [blame] | 199 | // If the caller wants the full non-MIP mapped texture we're done. |
Greg Daniel | cc104db | 2020-02-03 14:17:08 -0500 | [diff] [blame] | 200 | return texProxyView; |
Greg Daniel | 3860cfd1 | 2018-09-07 09:13:54 -0400 | [diff] [blame] | 201 | } |
Brian Salomon | a54af92 | 2020-03-03 16:56:22 -0500 | [diff] [blame] | 202 | // Otherwise, make a copy for the requested subset and/or MIP maps. |
Greg Daniel | 3860cfd1 | 2018-09-07 09:13:54 -0400 | [diff] [blame] | 203 | SkIRect subset = SkIRect::MakeXYWH(origin.fX, origin.fY, info.width(), info.height()); |
| 204 | |
Brian Salomon | bc074a6 | 2020-03-18 10:06:13 -0400 | [diff] [blame] | 205 | SkBudgeted budgeted = texGenPolicy == GrImageTexGenPolicy::kNew_Uncached_Unbudgeted |
| 206 | ? SkBudgeted::kNo |
| 207 | : SkBudgeted::kYes; |
| 208 | |
Brian Salomon | c524378 | 2020-04-02 12:50:34 -0400 | [diff] [blame] | 209 | return GrSurfaceProxyView::Copy(context, std::move(texProxyView), mipMapped, subset, |
| 210 | SkBackingFit::kExact, budgeted); |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 211 | } |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 212 | |
Robert Phillips | 4a3ebc2 | 2020-07-10 11:27:43 -0400 | [diff] [blame] | 213 | bool GrAHardwareBufferImageGenerator::onIsValid(GrRecordingContext* context) const { |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 214 | if (nullptr == context) { |
| 215 | return false; //CPU backend is not supported, because hardware buffer can be swizzled |
| 216 | } |
Robert Phillips | 4217ea7 | 2019-01-30 13:08:28 -0500 | [diff] [blame] | 217 | return GrBackendApi::kOpenGL == context->backend() || |
| 218 | GrBackendApi::kVulkan == context->backend(); |
Stan Iliev | 7e910df | 2017-06-02 10:29:21 -0400 | [diff] [blame] | 219 | } |
| 220 | |
| 221 | #endif //SK_BUILD_FOR_ANDROID_FRAMEWORK |