Commit Graph

47 Commits

Author SHA1 Message Date
Santy-Wang 9f30a7e564 fix plistParser is undefined (#7771) 2020-11-12 11:57:47 +08:00
minggo a705618093 Cache CanvasRenderingContext2D properties as possbile (#7749)
* cache CanvasRenderingContext2D properties

* cache CanvasRenderingContext2D attributes

* cache CanvasRenderingContext2D properties

* create canvas with default widht/height

* fix typo
2020-11-10 19:13:33 +08:00
Santy-Wang 38277a2403 Encapsulates a method to replace System.import (#7747) 2020-11-10 17:30:02 +08:00
PP fbcb4aea40 fix audio can't play on native platform (#7728) 2020-11-07 14:39:24 +08:00
ChiaNing 68df7cbebd video-player check (#7719) 2020-11-07 11:30:19 +08:00
minggo 956a5b2cc7 Reduce jsb (#7723)
* use JS BufferInfo

* use JS TextureViewInfo

* use JS TextureInfo

* cache some data to reduce JSB invoking

* cached buffer usage

* add RasterizerState.depthBiasEnabled

* use JS DescriptorSetInfo

* add RasterizerState.depthBiasEnabled
2020-11-06 17:33:02 +08:00
minggo 588025afe3 Reduce jsb (#7700)
* use JS version of GFXRect/GFXViewport/GFXColor/GFXOffset/GFXExtent/GFXTextureSubres/GFXTextureCopy/GFXBufferTexrureCopy
* use BufferPool for BlendState/BlendTarget/DepthStencilState/ResterizerState
2020-11-05 18:17:18 +08:00
pandamicro 3068956648 Refactor gfx module naming convention (#7663)
* Remove GFX prefix in gfx module

* Full deprecation for old GFX APIs

* export gfx module

* Fix issues and make deprecated exports backward compatible

* Adaptation in engine modules for gfx

* Fix ci

* fix ci
2020-11-02 09:49:50 +08:00
Jare Guo e2b740dd15 Finally merge runtime deserializer & asset manager (#7648)
* sync asset-manager

refine

refine

refine

* change director

* refine

* fix bugs

* commit

* refine and fix bugs

* refine docs

* fix bugs

* merge

* fix bugs

* fix bugs

* merge

* sync jsb-adapter

* fix ci

* adapt preloading process for new Deserializer

* adapt preloading process for new Deserializer

* fix bugs

* minor fix

* dump dependency of SpriteFrame explicitly (sync #6938)

* dump dependency of SpriteFrame explicitly (sync #6938)

* remove unused variable

* exporting should trigger uuid compression in serializer

* refine

* fix ci

Co-authored-by: Santy-Wang <wh19930829@qq.com>
2020-10-30 20:51:58 +08:00
coulsonwang 81cde92f36 skip update buffer when empty for native (#7627) 2020-10-30 19:10:26 +08:00
Jare Guo df5fc6c9a1 fix merge error 2020-10-28 23:51:55 +08:00
Knox 37fec6341f sync 2d (Update the url links) (#7613) 2020-10-28 17:06:27 +08:00
Yun Hsiao Wu a318283a41 fix pre-rotation adaptation (#7607) 2020-10-28 10:28:21 +08:00
PP f93c6ed7d4 update jsb-editbox adapter to ES6 (#7584) 2020-10-22 20:32:01 +08:00
Knox 6e516fefd8 sync 2d jsb-game (#7577) 2020-10-22 11:03:45 +08:00
Jare Guo 0319477911 fix decorator warning of ValueTypes (#7553)
* fix decorator warning of ValueTypes (sync #6285)

* refresh copyright
2020-10-21 16:31:41 +08:00
minggo fd96d81100 handle memory warning event (#7560)
* handle memory warning event

* emit low memory event

* fix event name
2020-10-21 11:19:29 +08:00
minggo 46d6a21a87 invoke native update only it is dirty (#7546) 2020-10-16 17:07:33 +08:00
coulsonwang 934b18cd10 fix native instanced buffer (#7528) 2020-10-15 10:19:11 +08:00
minggo 609c49aafe remove unneeded codes 2020-10-14 14:32:23 +08:00
minggo a701b2904b remove unneeded codes 2020-10-14 14:28:59 +08:00
minggo ece2fc3ae7 clip framebuffer.ts 2020-10-14 14:12:21 +08:00
minggo dbf90b0a98 clip framebuffer.ts 2020-10-14 14:05:25 +08:00
minggo 329fefc33c clip descriptor-set.ts, pipeline-layout.ts and descriptor-set-layout.ts 2020-10-14 13:56:54 +08:00
minggo 95a7d90a5c clip queue.ts 2020-10-14 11:18:27 +08:00
minggo 38bffa1fa1 clip render-pass.ts 2020-10-14 11:13:51 +08:00
minggo df0efdc74a clip more JS codes on native (#7520) 2020-10-14 09:42:32 +08:00
minggo 8c93b9e890 clip shader.js/input-assembler.js/buffer.js (#7516) 2020-10-13 15:11:57 +08:00
coulsonwang 35a165e8ca add SphereView to memory pool (#7484) 2020-10-12 15:05:15 +08:00
江战 040ebc4f6b sync https://github.com/cocos-creator-packages/jsb-adapter/pull/210 (#7483) 2020-10-11 17:24:27 +08:00
Knox 1ca96f678b improve web view component (#7414)
* add web view

* add web view gizmo icon
2020-10-11 17:12:11 +08:00
minggo 3539745c14 use native Texture/TextureInfo/TextureViewInfo on native platforms (#7498) 2020-10-10 18:28:16 +08:00
minggo c9bbcf905f GFXInputState GFXPipelineStateInfo use jsb binded class (#7473) 2020-09-30 17:25:20 +08:00
Knox 454c7bd3ee improve video player and support for Android and iOS platforms. (#7470)
* improve video player and support for Android and iOS platforms.

* refine code
2020-09-30 14:10:52 +08:00
minggo 0d29f4f3f3 make only native gfx work (#7468) 2020-09-29 14:48:43 +08:00
minggo 00f1b65311 do not adapt PipelineState (#7448) 2020-09-27 11:23:06 +08:00
Yun Hsiao Wu 80461d1566 fix audio stop after interrupted (#7443)
* minor

* fix audio stop after interrupted
2020-09-23 15:56:14 +08:00
minggo 1c4898f181 enable native pipeline (#7400) 2020-09-17 13:46:43 +08:00
minggo 72d27a5c0f cache RenderView.visibility (#7398) 2020-09-17 13:40:13 +08:00
minggo 1fef9af414 cache usage to reduce jni invoking times (#7393) 2020-09-16 18:27:05 +08:00
coulsonwang 4d0894ce27 add get handler for fog/ambient/skybox/shadows (#7388) 2020-09-16 16:36:36 +08:00
coulsonwang 9cebf67a7a Revert "add setTarget adapter (#7342)" (#7351)
This reverts commit edbf237ea4.
2020-09-10 11:24:03 +08:00
coulsonwang edbf237ea4 add setTarget adapter (#7342) 2020-09-10 10:02:08 +08:00
coulsonwang b44ce3a3bb add renderWindow adapter (#7343) 2020-09-10 09:58:20 +08:00
coulsonwang a91f97b7e1 rename shaderID (#7347) 2020-09-10 09:56:41 +08:00
minggo 4671f65df4 do not use pipeline adapter (#7339) 2020-09-09 10:06:40 +08:00
minggo 43cc9ecc43 add jsb adapter (#7323) 2020-09-08 10:05:00 +08:00