blob: 9043f6af227dbae19ffc6e168ac9d34f6cc6cbcb [file] [log] [blame]
Robert Phillips4217ea72019-01-30 13:08:28 -05001/*
2 * Copyright 2019 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
Mike Kleinc0bd9f92019-04-23 12:05:21 -05008#include "include/private/GrRecordingContext.h"
Robert Phillips4217ea72019-01-30 13:08:28 -05009
Mike Kleinc0bd9f92019-04-23 12:05:21 -050010#include "include/gpu/GrContext.h"
Greg Danielf91aeb22019-06-18 09:58:02 -040011#include "src/gpu/GrAuditTrail.h"
Mike Kleinc0bd9f92019-04-23 12:05:21 -050012#include "src/gpu/GrCaps.h"
13#include "src/gpu/GrDrawingManager.h"
14#include "src/gpu/GrMemoryPool.h"
15#include "src/gpu/GrProxyProvider.h"
16#include "src/gpu/GrRecordingContextPriv.h"
17#include "src/gpu/GrRenderTargetContext.h"
Greg Danielf91aeb22019-06-18 09:58:02 -040018#include "src/gpu/GrSkSLFPFactoryCache.h"
Mike Kleinc0bd9f92019-04-23 12:05:21 -050019#include "src/gpu/GrTextureContext.h"
20#include "src/gpu/SkGr.h"
21#include "src/gpu/text/GrTextBlobCache.h"
Robert Phillipsa41c6852019-02-07 10:44:10 -050022
Robert Phillips292a6b22019-02-14 14:49:02 -050023#define ASSERT_SINGLE_OWNER_PRIV \
24 SkDEBUGCODE(GrSingleOwner::AutoEnforce debug_SingleOwner(this->singleOwner());)
25
Robert Phillipsc1541ae2019-02-04 12:05:37 -050026GrRecordingContext::GrRecordingContext(GrBackendApi backend,
27 const GrContextOptions& options,
Robert Phillipsa41c6852019-02-07 10:44:10 -050028 uint32_t contextID)
Greg Danielf91aeb22019-06-18 09:58:02 -040029 : INHERITED(backend, options, contextID)
30 , fAuditTrail(new GrAuditTrail()) {
Robert Phillips4217ea72019-01-30 13:08:28 -050031}
32
33GrRecordingContext::~GrRecordingContext() { }
34
Robert Phillips2184fb72019-02-21 16:11:41 -050035/**
36 * TODO: move textblob draw calls below context (see comment below)
37 */
38static void textblobcache_overbudget_CB(void* data) {
39 SkASSERT(data);
40 GrRecordingContext* context = reinterpret_cast<GrRecordingContext*>(data);
41
42 GrContext* direct = context->priv().asDirectContext();
43 if (!direct) {
44 return;
45 }
46
47 // TextBlobs are drawn at the SkGpuDevice level, therefore they cannot rely on
48 // GrRenderTargetContext to perform a necessary flush. The solution is to move drawText calls
49 // to below the GrContext level, but this is not trivial because they call drawPath on
50 // SkGpuDevice.
51 direct->flush();
52}
53
Robert Phillips292a6b22019-02-14 14:49:02 -050054bool GrRecordingContext::init(sk_sp<const GrCaps> caps, sk_sp<GrSkSLFPFactoryCache> cache) {
55
56 if (!INHERITED::init(std::move(caps), std::move(cache))) {
57 return false;
58 }
59
Herb Derbya00da612019-03-04 17:10:01 -050060 fStrikeCache.reset(new GrStrikeCache(this->caps(),
Robert Phillips2184fb72019-02-21 16:11:41 -050061 this->options().fGlyphCacheTextureMaximumBytes));
62
63 fTextBlobCache.reset(new GrTextBlobCache(textblobcache_overbudget_CB, this,
64 this->contextID()));
65
Robert Phillips56181ba2019-03-08 12:00:45 -050066 return true;
67}
68
Greg Danielf41b2bd2019-08-22 16:19:24 -040069void GrRecordingContext::setupDrawingManager(bool sortOpsTasks, bool reduceOpsTaskSplitting) {
Robert Phillips69893702019-02-22 11:16:30 -050070 GrPathRendererChain::Options prcOptions;
71 prcOptions.fAllowPathMaskCaching = this->options().fAllowPathMaskCaching;
72#if GR_TEST_UTILS
73 prcOptions.fGpuPathRenderers = this->options().fGpuPathRenderers;
74#endif
Chris Daltonf7748182019-03-18 16:22:30 +000075 // FIXME: Once this is removed from Chrome and Android, rename to fEnable"".
76 if (!this->options().fDisableCoverageCountingPaths) {
77 prcOptions.fGpuPathRenderers |= GpuPathRenderers::kCoverageCounting;
Robert Phillips69893702019-02-22 11:16:30 -050078 }
79 if (this->options().fDisableDistanceFieldPaths) {
80 prcOptions.fGpuPathRenderers &= ~GpuPathRenderers::kSmall;
81 }
82
83 if (!this->proxyProvider()->renderingDirectly()) {
84 // DDL TODO: remove this crippling of the path renderer chain
85 // Disable the small path renderer bc of the proxies in the atlas. They need to be
Greg Danielf41b2bd2019-08-22 16:19:24 -040086 // unified when the opsTasks are added back to the destination drawing manager.
Robert Phillips69893702019-02-22 11:16:30 -050087 prcOptions.fGpuPathRenderers &= ~GpuPathRenderers::kSmall;
88 }
89
90 GrTextContext::Options textContextOptions;
91 textContextOptions.fMaxDistanceFieldFontSize = this->options().fGlyphsAsPathsFontSize;
92 textContextOptions.fMinDistanceFieldFontSize = this->options().fMinDistanceFieldFontSize;
93 textContextOptions.fDistanceFieldVerticesAlwaysHaveW = false;
94#if SK_SUPPORT_ATLAS_TEXT
95 if (GrContextOptions::Enable::kYes == this->options().fDistanceFieldGlyphVerticesAlwaysHaveW) {
96 textContextOptions.fDistanceFieldVerticesAlwaysHaveW = true;
97 }
98#endif
99
100 fDrawingManager.reset(new GrDrawingManager(this,
Robert Phillips12c46292019-04-23 07:36:17 -0400101 prcOptions,
102 textContextOptions,
Greg Danielf41b2bd2019-08-22 16:19:24 -0400103 sortOpsTasks,
104 reduceOpsTaskSplitting));
Robert Phillips292a6b22019-02-14 14:49:02 -0500105}
106
Robert Phillipsa9162df2019-02-11 14:12:03 -0500107void GrRecordingContext::abandonContext() {
108 INHERITED::abandonContext();
Robert Phillips2184fb72019-02-21 16:11:41 -0500109
Herb Derbya00da612019-03-04 17:10:01 -0500110 fStrikeCache->freeAll();
Robert Phillips2184fb72019-02-21 16:11:41 -0500111 fTextBlobCache->freeAll();
Robert Phillipsa9162df2019-02-11 14:12:03 -0500112}
113
Robert Phillips69893702019-02-22 11:16:30 -0500114GrDrawingManager* GrRecordingContext::drawingManager() {
115 return fDrawingManager.get();
116}
117
Robert Phillipsd6841482019-02-08 10:29:20 -0500118sk_sp<GrOpMemoryPool> GrRecordingContext::refOpMemoryPool() {
119 if (!fOpMemoryPool) {
120 // DDL TODO: should the size of the memory pool be decreased in DDL mode? CPU-side memory
121 // consumed in DDL mode vs. normal mode for a single skp might be a good metric of wasted
122 // memory.
123 fOpMemoryPool = sk_sp<GrOpMemoryPool>(new GrOpMemoryPool(16384, 16384));
124 }
125
126 SkASSERT(fOpMemoryPool);
127 return fOpMemoryPool;
128}
129
130GrOpMemoryPool* GrRecordingContext::opMemoryPool() {
131 return this->refOpMemoryPool().get();
132}
133
Robert Phillips2184fb72019-02-21 16:11:41 -0500134GrTextBlobCache* GrRecordingContext::getTextBlobCache() {
135 return fTextBlobCache.get();
136}
137
138const GrTextBlobCache* GrRecordingContext::getTextBlobCache() const {
139 return fTextBlobCache.get();
140}
141
Robert Phillipsc5058a62019-02-15 12:52:59 -0500142void GrRecordingContext::addOnFlushCallbackObject(GrOnFlushCallbackObject* onFlushCBObject) {
143 this->drawingManager()->addOnFlushCallbackObject(onFlushCBObject);
144}
145
Brian Salomonbf6b9792019-08-21 09:38:10 -0400146std::unique_ptr<GrSurfaceContext> GrRecordingContext::makeWrappedSurfaceContext(
Brian Salomone7499c72019-06-24 12:12:36 -0400147 sk_sp<GrSurfaceProxy> proxy,
Brian Salomond6287472019-06-24 15:50:07 -0400148 GrColorType colorType,
Brian Salomone7499c72019-06-24 12:12:36 -0400149 SkAlphaType alphaType,
150 sk_sp<SkColorSpace> colorSpace,
151 const SkSurfaceProps* props) {
Robert Phillips292a6b22019-02-14 14:49:02 -0500152 ASSERT_SINGLE_OWNER_PRIV
153
Brian Salomon9d8cac82019-07-16 15:59:31 -0400154 SkASSERT(proxy);
155
Robert Phillips292a6b22019-02-14 14:49:02 -0500156 if (proxy->asRenderTargetProxy()) {
Brian Salomone7499c72019-06-24 12:12:36 -0400157 SkASSERT(kPremul_SkAlphaType == alphaType || kOpaque_SkAlphaType == alphaType);
Brian Salomond6287472019-06-24 15:50:07 -0400158 return this->drawingManager()->makeRenderTargetContext(std::move(proxy), colorType,
Robert Phillips292a6b22019-02-14 14:49:02 -0500159 std::move(colorSpace), props);
160 } else {
161 SkASSERT(proxy->asTextureProxy());
162 SkASSERT(!props);
Brian Salomond6287472019-06-24 15:50:07 -0400163 return this->drawingManager()->makeTextureContext(std::move(proxy), colorType, alphaType,
Brian Salomone7499c72019-06-24 12:12:36 -0400164 std::move(colorSpace));
Robert Phillips292a6b22019-02-14 14:49:02 -0500165 }
166}
167
Brian Salomonbf6b9792019-08-21 09:38:10 -0400168std::unique_ptr<GrTextureContext> GrRecordingContext::makeDeferredTextureContext(
Brian Salomone7499c72019-06-24 12:12:36 -0400169 SkBackingFit fit,
Brian Salomon947efe22019-07-16 15:36:11 -0400170 int width,
171 int height,
Brian Salomond6287472019-06-24 15:50:07 -0400172 GrColorType colorType,
Brian Salomone7499c72019-06-24 12:12:36 -0400173 SkAlphaType alphaType,
174 sk_sp<SkColorSpace> colorSpace,
Brian Salomon947efe22019-07-16 15:36:11 -0400175 GrMipMapped mipMapped,
176 GrSurfaceOrigin origin,
177 SkBudgeted budgeted,
178 GrProtected isProtected) {
Robert Phillips0a15cc62019-07-30 12:49:10 -0400179 auto format = this->caps()->getDefaultBackendFormat(colorType, GrRenderable::kNo);
Brian Salomon947efe22019-07-16 15:36:11 -0400180 if (!format.isValid()) {
181 return nullptr;
Robert Phillips292a6b22019-02-14 14:49:02 -0500182 }
Brian Salomon947efe22019-07-16 15:36:11 -0400183 auto config = this->caps()->getConfigFromBackendFormat(format, colorType);
184 if (config == kUnknown_GrPixelConfig) {
Robert Phillips292a6b22019-02-14 14:49:02 -0500185 return nullptr;
186 }
187
Brian Salomon947efe22019-07-16 15:36:11 -0400188 GrSurfaceDesc desc;
189 desc.fWidth = width;
190 desc.fHeight = height;
Brian Salomon947efe22019-07-16 15:36:11 -0400191 desc.fConfig = config;
192
193 sk_sp<GrTextureProxy> texture;
194 if (GrMipMapped::kNo == mipMapped) {
Brian Salomon27b4d8d2019-07-22 14:23:45 -0400195 texture = this->proxyProvider()->createProxy(format, desc, GrRenderable::kNo, 1, origin,
196 fit, budgeted, isProtected);
Brian Salomon947efe22019-07-16 15:36:11 -0400197 } else {
Brian Salomon27b4d8d2019-07-22 14:23:45 -0400198 texture = this->proxyProvider()->createMipMapProxy(format, desc, GrRenderable::kNo, 1,
199 origin, budgeted, isProtected);
Brian Salomon947efe22019-07-16 15:36:11 -0400200 }
201 if (!texture) {
202 return nullptr;
Robert Phillips292a6b22019-02-14 14:49:02 -0500203 }
204
Brian Salomon947efe22019-07-16 15:36:11 -0400205 auto drawingManager = this->drawingManager();
206
207 return drawingManager->makeTextureContext(std::move(texture), colorType, alphaType,
208 std::move(colorSpace));
Robert Phillips292a6b22019-02-14 14:49:02 -0500209}
210
Brian Salomonbf6b9792019-08-21 09:38:10 -0400211std::unique_ptr<GrRenderTargetContext> GrRecordingContext::makeDeferredRenderTargetContext(
Brian Salomond6287472019-06-24 15:50:07 -0400212 SkBackingFit fit,
213 int width,
214 int height,
Brian Salomond6287472019-06-24 15:50:07 -0400215 GrColorType colorType,
216 sk_sp<SkColorSpace> colorSpace,
217 int sampleCnt,
218 GrMipMapped mipMapped,
219 GrSurfaceOrigin origin,
220 const SkSurfaceProps* surfaceProps,
221 SkBudgeted budgeted,
Emircan Uysaler23ca4e72019-06-24 10:53:09 -0400222 GrProtected isProtected) {
Robert Phillipsb97da532019-02-12 15:24:12 -0500223 SkASSERT(sampleCnt > 0);
224 if (this->abandoned()) {
225 return nullptr;
226 }
227
Robert Phillips0a15cc62019-07-30 12:49:10 -0400228 auto format = this->caps()->getDefaultBackendFormat(colorType, GrRenderable::kYes);
Brian Salomon27ae52c2019-07-03 11:27:44 -0400229 if (!format.isValid()) {
230 return nullptr;
231 }
232 auto config = this->caps()->getConfigFromBackendFormat(format, colorType);
233 if (config == kUnknown_GrPixelConfig) {
234 return nullptr;
235 }
236
Robert Phillipsb97da532019-02-12 15:24:12 -0500237 GrSurfaceDesc desc;
Robert Phillipsb97da532019-02-12 15:24:12 -0500238 desc.fWidth = width;
239 desc.fHeight = height;
240 desc.fConfig = config;
Robert Phillipsb97da532019-02-12 15:24:12 -0500241
242 sk_sp<GrTextureProxy> rtp;
243 if (GrMipMapped::kNo == mipMapped) {
Brian Salomon27b4d8d2019-07-22 14:23:45 -0400244 rtp = this->proxyProvider()->createProxy(format, desc, GrRenderable::kYes, sampleCnt,
245 origin, fit, budgeted, isProtected);
Robert Phillipsb97da532019-02-12 15:24:12 -0500246 } else {
Brian Salomon27b4d8d2019-07-22 14:23:45 -0400247 rtp = this->proxyProvider()->createMipMapProxy(format, desc, GrRenderable::kYes, sampleCnt,
248 origin, budgeted, isProtected);
Robert Phillipsb97da532019-02-12 15:24:12 -0500249 }
250 if (!rtp) {
251 return nullptr;
252 }
253
Robert Phillipsb97da532019-02-12 15:24:12 -0500254 auto drawingManager = this->drawingManager();
255
Brian Salomonbf6b9792019-08-21 09:38:10 -0400256 auto renderTargetContext = drawingManager->makeRenderTargetContext(
Brian Salomond6287472019-06-24 15:50:07 -0400257 std::move(rtp), colorType, std::move(colorSpace), surfaceProps);
Robert Phillipsb97da532019-02-12 15:24:12 -0500258 if (!renderTargetContext) {
259 return nullptr;
260 }
261
262 renderTargetContext->discard();
263
264 return renderTargetContext;
265}
Robert Phillipsd6841482019-02-08 10:29:20 -0500266
Brian Salomon27ae52c2019-07-03 11:27:44 -0400267static inline GrColorType color_type_fallback(GrColorType ct) {
268 switch (ct) {
269 // kRGBA_8888 is our default fallback for many color types that may not have renderable
270 // backend formats.
Brian Salomond6287472019-06-24 15:50:07 -0400271 case GrColorType::kAlpha_8:
Brian Salomond6287472019-06-24 15:50:07 -0400272 case GrColorType::kBGR_565:
Brian Salomond6287472019-06-24 15:50:07 -0400273 case GrColorType::kABGR_4444:
Brian Salomond6287472019-06-24 15:50:07 -0400274 case GrColorType::kBGRA_8888:
Brian Salomond6287472019-06-24 15:50:07 -0400275 case GrColorType::kRGBA_1010102:
Brian Salomond6287472019-06-24 15:50:07 -0400276 case GrColorType::kRGBA_F16:
Brian Salomond6287472019-06-24 15:50:07 -0400277 case GrColorType::kRGBA_F16_Clamped:
Brian Salomon27ae52c2019-07-03 11:27:44 -0400278 return GrColorType::kRGBA_8888;
Brian Salomond6287472019-06-24 15:50:07 -0400279 case GrColorType::kAlpha_F16:
Brian Salomon27ae52c2019-07-03 11:27:44 -0400280 return GrColorType::kRGBA_F16;
Brian Salomond6287472019-06-24 15:50:07 -0400281 case GrColorType::kGray_8:
Brian Salomon27ae52c2019-07-03 11:27:44 -0400282 return GrColorType::kRGB_888x;
Robert Phillips6f0e02f2019-02-13 11:02:28 -0500283 default:
Brian Salomon27ae52c2019-07-03 11:27:44 -0400284 return GrColorType::kUnknown;
Robert Phillips6f0e02f2019-02-13 11:02:28 -0500285 }
286}
287
Brian Salomonbf6b9792019-08-21 09:38:10 -0400288std::unique_ptr<GrRenderTargetContext>
289GrRecordingContext::makeDeferredRenderTargetContextWithFallback(SkBackingFit fit,
290 int width,
291 int height,
292 GrColorType colorType,
293 sk_sp<SkColorSpace> colorSpace,
294 int sampleCnt,
295 GrMipMapped mipMapped,
296 GrSurfaceOrigin origin,
297 const SkSurfaceProps* surfaceProps,
298 SkBudgeted budgeted,
299 GrProtected isProtected) {
Robert Phillips6f0e02f2019-02-13 11:02:28 -0500300 SkASSERT(sampleCnt > 0);
Brian Salomonbf6b9792019-08-21 09:38:10 -0400301 std::unique_ptr<GrRenderTargetContext> rtc;
Brian Salomon27ae52c2019-07-03 11:27:44 -0400302 do {
303 rtc = this->makeDeferredRenderTargetContext(fit, width, height, colorType, colorSpace,
304 sampleCnt, mipMapped, origin, surfaceProps,
305 budgeted, isProtected);
306 colorType = color_type_fallback(colorType);
307 } while (!rtc && colorType != GrColorType::kUnknown);
308 return rtc;
Robert Phillips6f0e02f2019-02-13 11:02:28 -0500309}
310
Robert Phillipsa41c6852019-02-07 10:44:10 -0500311///////////////////////////////////////////////////////////////////////////////////////////////////
312sk_sp<const GrCaps> GrRecordingContextPriv::refCaps() const {
313 return fContext->refCaps();
314}
315
316sk_sp<GrSkSLFPFactoryCache> GrRecordingContextPriv::fpFactoryCache() {
317 return fContext->fpFactoryCache();
318}
Robert Phillipsd6841482019-02-08 10:29:20 -0500319
320sk_sp<GrOpMemoryPool> GrRecordingContextPriv::refOpMemoryPool() {
321 return fContext->refOpMemoryPool();
322}
Robert Phillipsb97da532019-02-12 15:24:12 -0500323
Robert Phillipsc5058a62019-02-15 12:52:59 -0500324void GrRecordingContextPriv::addOnFlushCallbackObject(GrOnFlushCallbackObject* onFlushCBObject) {
325 fContext->addOnFlushCallbackObject(onFlushCBObject);
326}
327
Brian Salomonbf6b9792019-08-21 09:38:10 -0400328std::unique_ptr<GrSurfaceContext> GrRecordingContextPriv::makeWrappedSurfaceContext(
Brian Salomone7499c72019-06-24 12:12:36 -0400329 sk_sp<GrSurfaceProxy> proxy,
Brian Salomond6287472019-06-24 15:50:07 -0400330 GrColorType colorType,
Brian Salomone7499c72019-06-24 12:12:36 -0400331 SkAlphaType alphaType,
332 sk_sp<SkColorSpace> colorSpace,
333 const SkSurfaceProps* props) {
Brian Salomond6287472019-06-24 15:50:07 -0400334 return fContext->makeWrappedSurfaceContext(std::move(proxy), colorType, alphaType,
335 std::move(colorSpace), props);
Robert Phillips292a6b22019-02-14 14:49:02 -0500336}
337
Brian Salomonbf6b9792019-08-21 09:38:10 -0400338std::unique_ptr<GrTextureContext> GrRecordingContextPriv::makeDeferredTextureContext(
Brian Salomone7499c72019-06-24 12:12:36 -0400339 SkBackingFit fit,
Brian Salomon947efe22019-07-16 15:36:11 -0400340 int width,
341 int height,
Brian Salomond6287472019-06-24 15:50:07 -0400342 GrColorType colorType,
Brian Salomone7499c72019-06-24 12:12:36 -0400343 SkAlphaType alphaType,
344 sk_sp<SkColorSpace> colorSpace,
Brian Salomon947efe22019-07-16 15:36:11 -0400345 GrMipMapped mipMapped,
346 GrSurfaceOrigin origin,
347 SkBudgeted budgeted,
348 GrProtected isProtected) {
349 return fContext->makeDeferredTextureContext(fit, width, height, colorType, alphaType,
350 std::move(colorSpace), mipMapped, origin, budgeted,
351 isProtected);
Robert Phillips292a6b22019-02-14 14:49:02 -0500352}
353
Brian Salomonbf6b9792019-08-21 09:38:10 -0400354std::unique_ptr<GrRenderTargetContext> GrRecordingContextPriv::makeDeferredRenderTargetContext(
Brian Salomond6287472019-06-24 15:50:07 -0400355 SkBackingFit fit,
356 int width,
357 int height,
Brian Salomond6287472019-06-24 15:50:07 -0400358 GrColorType colorType,
359 sk_sp<SkColorSpace> colorSpace,
360 int sampleCnt,
361 GrMipMapped mipMapped,
362 GrSurfaceOrigin origin,
363 const SkSurfaceProps* surfaceProps,
364 SkBudgeted budgeted,
Emircan Uysaler23ca4e72019-06-24 10:53:09 -0400365 GrProtected isProtected) {
Brian Salomon27ae52c2019-07-03 11:27:44 -0400366 return fContext->makeDeferredRenderTargetContext(fit, width, height, colorType,
Robert Phillipsb97da532019-02-12 15:24:12 -0500367 std::move(colorSpace), sampleCnt, mipMapped,
Emircan Uysaler23ca4e72019-06-24 10:53:09 -0400368 origin, surfaceProps, budgeted, isProtected);
Robert Phillipsb97da532019-02-12 15:24:12 -0500369}
Robert Phillips6f0e02f2019-02-13 11:02:28 -0500370
Brian Salomonbf6b9792019-08-21 09:38:10 -0400371std::unique_ptr<GrRenderTargetContext>
372GrRecordingContextPriv::makeDeferredRenderTargetContextWithFallback(
Brian Salomond6287472019-06-24 15:50:07 -0400373 SkBackingFit fit,
374 int width,
375 int height,
Brian Salomond6287472019-06-24 15:50:07 -0400376 GrColorType colorType,
377 sk_sp<SkColorSpace> colorSpace,
378 int sampleCnt,
379 GrMipMapped mipMapped,
380 GrSurfaceOrigin origin,
381 const SkSurfaceProps* surfaceProps,
382 SkBudgeted budgeted,
Emircan Uysaler23ca4e72019-06-24 10:53:09 -0400383 GrProtected isProtected) {
Brian Salomon27ae52c2019-07-03 11:27:44 -0400384 return fContext->makeDeferredRenderTargetContextWithFallback(fit,
Brian Salomond6287472019-06-24 15:50:07 -0400385 width,
386 height,
Brian Salomond6287472019-06-24 15:50:07 -0400387 colorType,
388 std::move(colorSpace),
389 sampleCnt,
390 mipMapped,
391 origin,
392 surfaceProps,
393 budgeted,
394 isProtected);
Robert Phillips6f0e02f2019-02-13 11:02:28 -0500395}
Robert Phillips9338c602019-02-19 12:52:29 -0500396
397GrContext* GrRecordingContextPriv::backdoor() {
398 return (GrContext*) fContext;
399}
Greg Daniel7bfc9132019-08-14 14:23:53 -0400400