Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
2dfcaaa7
E
engine
项目概览
sxychenjing
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
2dfcaaa7
编写于
4月 27, 2021
作者:
G
George Wright
提交者:
GitHub
4月 27, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add a stub implementation of FlutterMetalCompositor (#25790)
上级
aebaf552
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
81 addition
and
0 deletion
+81
-0
ci/licenses_golden/licenses_flutter
ci/licenses_golden/licenses_flutter
+2
-0
shell/platform/darwin/macos/BUILD.gn
shell/platform/darwin/macos/BUILD.gn
+2
-0
shell/platform/darwin/macos/framework/Source/FlutterMetalCompositor.h
...rm/darwin/macos/framework/Source/FlutterMetalCompositor.h
+48
-0
shell/platform/darwin/macos/framework/Source/FlutterMetalCompositor.mm
...m/darwin/macos/framework/Source/FlutterMetalCompositor.mm
+29
-0
未找到文件。
ci/licenses_golden/licenses_flutter
浏览文件 @
2dfcaaa7
...
...
@@ -1148,6 +1148,8 @@ FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterKeybo
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyboardManager.mm
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyboardManagerUnittests.mm
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterMacOSExternalTexture.h
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterMetalCompositor.h
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterMetalCompositor.mm
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterMetalRenderer.h
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterMetalRenderer.mm
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterMetalRendererTest.mm
...
...
shell/platform/darwin/macos/BUILD.gn
浏览文件 @
2dfcaaa7
...
...
@@ -85,6 +85,8 @@ source_set("flutter_framework_source") {
"framework/Source/FlutterKeyboardManager.mm",
"framework/Source/FlutterMacOSExternalTexture.h",
"framework/Source/FlutterMacOSExternalTexture.h",
"framework/Source/FlutterMetalCompositor.h",
"framework/Source/FlutterMetalCompositor.mm",
"framework/Source/FlutterMetalRenderer.h",
"framework/Source/FlutterMetalRenderer.mm",
"framework/Source/FlutterMouseCursorPlugin.h",
...
...
shell/platform/darwin/macos/framework/Source/FlutterMetalCompositor.h
0 → 100644
浏览文件 @
2dfcaaa7
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_METAL_COMPOSITOR_H_
#define FLUTTER_METAL_COMPOSITOR_H_
#include "flutter/fml/macros.h"
#include "flutter/shell/platform/darwin/macos/framework/Source/FlutterCompositor.h"
namespace
flutter
{
class
FlutterMetalCompositor
:
public
FlutterCompositor
{
public:
explicit
FlutterMetalCompositor
(
FlutterViewController
*
view_controller
);
virtual
~
FlutterMetalCompositor
()
=
default
;
// Creates a BackingStore and sets backing_store_out to a
// FlutterBackingStore struct containing details of the new
// backing store.
//
// If the backing store is being requested for the first time
// for a given frame, we do not create a new backing store but
// rather return the backing store associated with the
// FlutterView's FlutterSurfaceManager.
//
// Any additional state allocated for the backing store and
// saved as user_data in the backing store must be collected
// in backing_store_out's destruction_callback field which will
// be called when the embedder collects the backing store.
bool
CreateBackingStore
(
const
FlutterBackingStoreConfig
*
config
,
FlutterBackingStore
*
backing_store_out
)
override
;
// Releases and deallocates any and all resources that were allocated
// for this FlutterBackingStore object in CreateBackingStore.
bool
CollectBackingStore
(
const
FlutterBackingStore
*
backing_store
)
override
;
// Composites the provided FlutterLayer objects and presents the composited
// frame to the FlutterView(s).
bool
Present
(
const
FlutterLayer
**
layers
,
size_t
layers_count
)
override
;
FML_DISALLOW_COPY_AND_ASSIGN
(
FlutterMetalCompositor
);
};
}
// namespace flutter
#endif // FLUTTER_METAL_COMPOSITOR_H_
shell/platform/darwin/macos/framework/Source/FlutterMetalCompositor.mm
0 → 100644
浏览文件 @
2dfcaaa7
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterMetalCompositor.h"
#include "flutter/fml/logging.h"
namespace
flutter
{
FlutterMetalCompositor
::
FlutterMetalCompositor
(
FlutterViewController
*
view_controller
)
:
FlutterCompositor
(
view_controller
)
{}
bool
FlutterMetalCompositor
::
CreateBackingStore
(
const
FlutterBackingStoreConfig
*
config
,
FlutterBackingStore
*
backing_store_out
)
{
FML_CHECK
(
false
)
<<
"Not implemented, see issue: https://github.com/flutter/flutter/issues/81320"
;
return
false
;
}
bool
FlutterMetalCompositor
::
CollectBackingStore
(
const
FlutterBackingStore
*
backing_store
)
{
FML_CHECK
(
false
)
<<
"Not implemented, see issue: https://github.com/flutter/flutter/issues/81320"
;
return
false
;
}
bool
FlutterMetalCompositor
::
Present
(
const
FlutterLayer
**
layers
,
size_t
layers_count
)
{
FML_CHECK
(
false
)
<<
"Not implemented, see issue: https://github.com/flutter/flutter/issues/81320"
;
return
false
;
}
}
// namespace flutter
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录