Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
ios_external_texture_metal.mm
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#import "flutter/shell/platform/darwin/ios/ios_external_texture_metal.h"
6#include "flow/layers/layer.h"
7
9
10namespace flutter {
11
13 const fml::scoped_nsobject<FlutterDarwinExternalTextureMetal>& darwin_external_texture_metal)
14 : Texture([darwin_external_texture_metal textureID]),
15 darwin_external_texture_metal_(darwin_external_texture_metal) {}
16
18
20 const SkRect& bounds,
21 bool freeze,
22 const DlImageSampling sampling) {
23 [darwin_external_texture_metal_ paintContext:context
24 bounds:bounds
25 freeze:freeze
26 sampling:sampling];
27}
28
30 [darwin_external_texture_metal_ onGrContextCreated];
31}
32
34 [darwin_external_texture_metal_ onGrContextDestroyed];
35}
36
38 [darwin_external_texture_metal_ markNewFrameAvailable];
39}
40
42 [darwin_external_texture_metal_ onTextureUnregistered];
43}
44
45} // namespace flutter
void Paint(PaintContext &context, const SkRect &bounds, bool freeze, const DlImageSampling sampling) override
IOSExternalTextureMetal(const fml::scoped_nsobject< FlutterDarwinExternalTextureMetal > &darwin_external_texture_metal)