7#import "flutter/shell/platform/darwin/ios/ios_context_metal_skia.h"
9#include "flutter/common/graphics/persistent_cache.h"
10#include "flutter/fml/logging.h"
11#import "flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalSkia.h"
12#import "flutter/shell/platform/darwin/ios/ios_external_texture_metal.h"
27 return darwin_context_metal_;
48std::unique_ptr<GLContextResult> IOSContextMetalSkia::MakeCurrent() {
50 return std::make_unique<GLContextDefaultResult>(
true);
54std::unique_ptr<Texture> IOSContextMetalSkia::CreateExternalTexture(
57 return std::make_unique<IOSExternalTextureMetal>(
IOSRenderingBackend GetBackend() const override
Get the rendering backend used by this context.
sk_sp< GrDirectContext > GetResourceContext() const
sk_sp< GrDirectContext > GetMainContext() const override
Accessor for the Skia context associated with IOSSurfaces and the raster thread.
fml::scoped_nsobject< FlutterDarwinContextMetalSkia > GetDarwinContext() const
T get() const __attribute((ns_returns_not_retained))
sk_sp< GrDirectContext > resourceContext
sk_sp< GrDirectContext > mainContext