Lines Matching defs:surface
66 // From the other side, we don't know enough about the wrapped surface to assert when
120 sk_sp<GrSurface> surface = this->createSurfaceImpl(resourceProvider, fSampleCnt,
122 if (!surface) {
125 SkASSERT(surface->asRenderTarget());
126 SkASSERT(!surface->asTexture());
127 return surface;
147 GrSurface* surface = this->peekSurface();
148 return surface->resourcePriv().refsWrappedObjects();
169 void GrRenderTargetProxy::onValidateSurface(const GrSurface* surface) {
170 // We do not check that surface->asTexture returns null since, when replaying DDLs we
174 SkASSERT(surface->asRenderTarget());
175 SkASSERT(surface->asRenderTarget()->numSamples() == this->numSamples());
178 GrInternalSurfaceFlags surfaceFlags = surface->flags();
182 // rendering to an arbitrary surface so we allow a non-FBO0 surface to be matched with
189 // We manually check the kVkRTSupportsInputAttachment since we only require it on the surface if
190 // the proxy has it set. If the proxy doesn't have the flag it is legal for the surface to