21 std::shared_ptr<IOSContext> context);
28 id<MTLDevice> device_;
29 id<MTLCommandQueue> command_queue_;
30 bool is_valid_ =
false;
33 bool IsValid()
const override;
36 void UpdateStorageSizeIfNecessary()
override;
39 std::unique_ptr<Surface> CreateGPUSurface(
GrDirectContext* gr_context)
override;
57 bool AllowsDrawingWhenGpuDisabled()
const override;