Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
19void IOSExternalTextureMetal::Paint(PaintContext& context,
20 const SkRect& bounds,
21 bool freeze,
23 [darwin_external_texture_metal_ paintContext:context
25 freeze:freeze
27}
28
29void IOSExternalTextureMetal::OnGrContextCreated() {
30 [darwin_external_texture_metal_ onGrContextCreated];
31}
32
33void IOSExternalTextureMetal::OnGrContextDestroyed() {
34 [darwin_external_texture_metal_ onGrContextDestroyed];
35}
36
37void IOSExternalTextureMetal::MarkNewFrameAvailable() {
38 [darwin_external_texture_metal_ markNewFrameAvailable];
39}
40
41void IOSExternalTextureMetal::OnTextureUnregistered() {
42 [darwin_external_texture_metal_ onTextureUnregistered];
43}
44
45} // namespace flutter
IOSExternalTextureMetal(const fml::scoped_nsobject< FlutterDarwinExternalTextureMetal > &darwin_external_texture_metal)
Optional< SkRect > bounds
Definition: SkRecords.h:189
SkSamplingOptions sampling
Definition: SkRecords.h:337