-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tgfx to the latest version. #2612
Conversation
# Conflicts: # src/rendering/filters/layerstyle/EffectFilter.cpp
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2612 +/- ##
=======================================
Coverage 77.38% 77.38%
=======================================
Files 420 420
Lines 22450 22450
Branches 6295 6355 +60
=======================================
Hits 17372 17372
+ Misses 3817 3815 -2
- Partials 1261 1263 +2 ☔ View full report in Codecov by Sentry. |
web/src/utils/buffer.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
参考一下tgfx的写法,已经不需要这个类了。这个类会多拷贝一次。
CMakeLists.txt
Outdated
@@ -493,10 +500,10 @@ if (WEB) | |||
-sMODULARIZE=1 -sENVIRONMENT='web,worker' -sEXPORT_ES6=1 -sUSE_ES6_IMPORT_META=0) | |||
if (CMAKE_BUILD_TYPE STREQUAL "Debug") | |||
list(APPEND PAG_COMPILE_OPTIONS -O0 -g3) | |||
list(APPEND PAG_LINK_OPTIONS -O0 -g3 -sSAFE_HEAP=1 -Wno-limited-postlink-optimizations) | |||
list(APPEND PAG_LINK_OPTIONS -O0 -g3 -sSAFE_HEAP=1 -Wno-limited-postlink-optimizations -s EXPORTED_FUNCTIONS=['_malloc','_free']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不需要增加这个接口导出,后面的buffer.ts也不需要
@@ -31,6 +31,26 @@ | |||
using namespace emscripten; | |||
|
|||
namespace pag { | |||
|
|||
std::unique_ptr<ByteData> CopyDataFromUint8Array(const val& emscriptenData) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
从js拷贝内存到c++都统一用这个方法就行,不需要后面的buffer.ts
No description provided.