Lines Matching defs:surface
141 sk_sp<GrSurface> surface = this->createSurfaceImpl(resourceProvider, this->numSamples(),
143 if (!surface) {
146 SkASSERT(surface->asRenderTarget());
147 SkASSERT(surface->asTexture());
149 return surface;
176 void GrTextureRenderTargetProxy::onValidateSurface(const GrSurface* surface) {
178 SkASSERT(surface->asTexture());
180 GrMipmapped::kYes == surface->asTexture()->mipmapped());
183 SkASSERT(surface->asRenderTarget());
184 SkASSERT(surface->asRenderTarget()->numSamples() == this->numSamples());
186 SkASSERT(surface->asTexture()->textureType() == this->textureType());
189 GrInternalSurfaceFlags surfaceFlags = surface->flags();
198 // We manually check the kVkRTSupportsInputAttachment since we only require it on the surface if
199 // the proxy has it set. If the proxy doesn't have the flag it is legal for the surface to