67 {
68 auto dContext = ctxInfo.directContext();
70
72
73 {
75 if (proxy) {
77
78 int backingRefs = proxy->isInstantiated() ? 1 : -1;
79
81
82 proxy->instantiate(resourceProvider);
83
85 }
87 }
88
89
90 {
92 if (proxy) {
93 proxy->ref();
94 proxy->ref();
95
96 int backingRefs = proxy->isInstantiated() ? 1 : -1;
97
99
100 proxy->instantiate(resourceProvider);
101
103
104 proxy->unref();
105 proxy->unref();
106 }
108 }
109
110
111 {
113 if (proxy) {
115
116 int backingRefs = proxy->isInstantiated() ? 1 : -1;
117
119
120 proxy->instantiate(resourceProvider);
121
123
126 }
128 }
129 }
130}
static sk_sp< GrTextureProxy > make_wrapped(GrRecordingContext *rContext)
static sk_sp< GrTextureProxy > make_deferred(GrRecordingContext *rContext)
void CheckSingleThreadedProxyRefs(skiatest::Reporter *reporter, GrSurfaceProxy *proxy, int32_t expectedProxyRefs, int32_t expectedBackingRefs)
GrResourceProviderPriv priv()
static void make(SkBitmap *bitmap, SkColorType colorType, SkAlphaType alphaType, sk_sp< SkColorSpace > colorSpace)