Commit Graph

1069 Commits

Author SHA1 Message Date
Arnold 3d35c5b444 Protect native allocated typed array from being GC (#1744)
* protect Uint8Array

* fix cond

* auto root in Data_to_seval
2019-05-23 14:08:10 +08:00
wuzhiming 7a19c65d52 add script engine initialize check when evalString from native 2019-05-20 11:03:03 +08:00
Cocos Robot 360c6c1f82 Sync branch v2.0.10 to v2.1.1-release 2019-04-25 20:06:46 +08:00
owen 0edef1a7b5 Fix dragonbnoes slot displayIndex invalid in native platform bug (#1730) 2019-04-25 13:51:20 +08:00
Arnold a9e182967f Prevent XMLHttpRequest from being gc incorrectly, when timeout occurs. (#1724)
* gc on response

* fix state

* add comment

* prevent multiple send

* revert bindings-generator

* rename _isSend to _isSending
2019-04-22 13:08:00 +08:00
Cocos Robot f07b75a90e Sync branch v2.0-release to v2.1-release 2019-04-19 18:53:15 +08:00
Arnold f3f5f4b7b6 Prevent connection objects from being GC, when they are not done yet. (#1716)
* prevent connections from being GC, when they are not  yet.

* run genbindings

* triggle ci
2019-04-19 10:17:41 +08:00
kenshin 3b9ea184ae fix XMLHttpRequest crash, avoid HttpClient response call a released object! (#1721) 2019-04-19 10:06:40 +08:00
Jare Guo 0edfbf4b92 Merge commit 'a4dc939aef28a4142723667df702d4003a6a8468' into v2.1-release 2019-04-03 20:06:14 +08:00
wuzhiming 2f98eff917 change font search method to avoid font search error 2019-03-13 13:55:39 +08:00
CocosRobot 3581cd0adb [ci skip][AUTO]: updating jsbinding automatically (#1696) 2019-03-13 10:13:21 +08:00
owen 0acb69851b optimize spine memory (#1694)
* Optimize spine memory

* roll back genbindings.py
Remove unused function

* visual studio project config

* modify Android mk

* Modify default project config

* Fix restart vm crash

* Fix if listen spine dispose event, will triggle crash bug

* Move some function to private

* move release skeletondata behind depose skeleton

* optimize spine load file

* Add dragon bones and spine global time scale api

* clear tracks and listener

* change tab to 4 spaces

* optimized code logic
2019-03-12 11:51:51 +08:00
Javier O 4e79585fd0 Improved audio engine interface to get the audio duration directly from the filename
because with the current implementation the audio needs to be preload and at least be played one time to get
the audio id which is needed to get the audio duration with the current getDuration API.
I've describes the problem in detail here:
https://discuss.cocos2d-x.org/t/audioengine-interface-improvement/34034
2019-02-28 09:18:14 -03:00
CocosRobot e07ab57dab [ci skip][AUTO]: updating jsbinding automatically (#1689) 2019-02-26 10:46:59 +08:00
leda 412223f085 default don't invoke log to javascript in JSC (#1687) 2019-02-25 21:21:04 +08:00
leda ae996e1fce fix potential crash on websocket for lifecycle sync issues (#1681) 2019-02-18 15:50:18 +08:00
ColinCollins c4f6629174 my fault fixed the gammar error (#1680) 2019-02-15 15:51:43 +08:00
ColinCollins 9b5525bdb5 fixed the compressed texture error (#1679)
copy image data size doesn't match the compress data size
2019-02-15 14:36:36 +08:00
ColinCollins 092c0834a7 fixed the png render error (#1678) 2019-02-14 17:06:33 +08:00
ColinCollins 0141a98b32 modify the picture format convert method (#1677) 2019-02-13 12:41:42 +08:00
owen a9887b4638 Fix vertex exceed 65535 error and dragonbones leak (#1669)
* fix exceed native-renderer

* fix dragonbones memery leak

* fix native db leak

* fix native db leak

* indent issue

* add MeshBuffer into vs project

* modify cocos2d_files template

* optimize spine
2019-02-12 17:14:03 +08:00
leda f82b9bfdf6 Merge pull request #1674 from cocos-creator/v2.1-release
sync branch 2.1 to 2.0
2019-01-31 18:19:53 +08:00
ColinCollins b58b27df3b add the adaptation of the png special format transform to RGBA format (#1672)
Squashed commits:
[2c579977] add the adaptation of the png special format transform to RGBA format
2019-01-29 15:54:09 +08:00
Wenhai Lin b8ae263cd2 Copy text to clipboard (#1667) 2019-01-28 10:14:34 +08:00
ColinCollins 7336ea01f1 add the adaptation of the png special format transform to RGBA format (#1668) 2019-01-28 10:07:31 +08:00
leda c792623707 improve module register logic, include simulator config (#1665)
* add Configuration settings for simulator, too

* improve module register logic
2019-01-16 11:29:47 +08:00
Jare Guo 4273ee52d8 Merge commit '90b862182c031ed638c579fd5f4c9f35e66bffcb' into v2.1-release 2019-01-15 21:34:39 +08:00
吴智明 2f6b44a2fc Change network module (#1655)
* change USE_NET_WORK to USE_SOCKET  and add xmlhttprequest default for ios platform

* change USE_NET_WORK to USE_SOCKET  and add xmlhttprequest default for android platform
2019-01-14 16:26:32 +08:00
owen 788244869f Spine upgrade (#1652)
* upgrade spine

* upgrade spine

* upgrade spine

* upgrade spine

* upgrade spine

* upgrade spine

* upgrade spine

* gulp: auto retry when git ref locked

* upgrade spine

* upgrade spine

* upgrade spine

* upgrade spine

* upgrade spine
2019-01-11 11:48:38 +08:00
leda 6af2435e20 improve error log when require failed by JSB (#1648)
* add error log when ScriptEngine::evalString failed

* improve require file not existed notify
2018-12-28 16:13:33 +08:00
owen 86a9f80485 fix ios 9 typedarray or arraybuffer send nullptr will crash bug (#1647) 2018-12-28 10:48:53 +08:00
Arnold 6916a8a3dc [httprequest] fix unsafe parser (#1629)
* [httprequest] fix unsafe parser

* simplify

* use status code

* fix response status text if missing

* allow space

* fix format
2018-12-27 17:39:55 +08:00
leda 831de21f91 adapt jsb2.0 docs to creator 2.x (#1643) 2018-12-25 18:08:32 +08:00
Knox ce0af6d8db add get system full language (#1638) 2018-12-24 14:41:38 +08:00
dreamtravel 79cb270254 remove AnySDK and Cocos Analytics, move both into Creator Service Panel (#1619)
* 移除cocos-2dx-lite的依赖external中的AnySDK和Cocos Analytics,转移这两者的集成到Service in Creator项目 修改Runtime默认工程,清理模版工程对AnySDK和Cocos Analytics的依赖

* 修改iOS link 模版

* 修改cocos2s-x-lite的deps目标
2018-12-07 17:32:44 +08:00
owen c9c6634e7e v2.0 skeleton optimize (#1603)
* v2.0 skeleton optimize

* v2.0 skeleton offical source file

* Rename jsbDragonBones to dragonbones
Rename jsbSpine to spine
Rename editor to middleware
Rename EditorManager to MiddlewareManager

* Rename Macro.h to MiddlewareMacro to avoid duplication of name

* Middleware update by js

* recover other ini generate

* Update cocos2dx-file.json

* createArrayBuffer support null point

* Rename MiddlewareMacro

* skeleton windows 工程

* add checkspace before write buffer

* add math include

* modify dragonBones to dragonbones

* modify dragonBones to dragonbones

* modify dragonBones to dragonbones

* remove useless code

* Change copyright time
2018-12-03 19:58:00 +08:00
leda 1954d0c396 fix typo at jsb_opengl_manual.cpp (#1604) 2018-11-20 20:17:21 +08:00
W-MTZing b33e14c0d1 Add GL_STENCIL_BITS at glGetParameter (#1595) 2018-11-15 10:28:42 +08:00
wdzhangchukong 1b99f965eb Add USE_V8_DEBUGGER to control chrome debugger (#1594)
* Add USE_V8_DEBUGGER to control chrome debugger

* Add USE_V8_DEBUGGER in ccConfig.h

* Fix error

* Define macro in config.hpp
2018-11-14 18:17:05 +08:00
wen xing liao f30af4d3ce webgl function complete check parameters (#1591) 2018-11-12 13:59:48 +08:00
wen xing liao 287b4e75e8 add macro OPENGL_PARAMETER_CHECK (#1590) 2018-11-09 14:12:22 +08:00
Arnold 8789c8ea89 [Android] jsb_global_load_image use network::Downloader to fetch content (#1584)
* fix issue #739, use Downloader instead of HttpClient

* remove unused variable

* revert downloader, default Downloader is not required

* revert

* add empty check

* add download cache
2018-11-08 16:53:10 +08:00
W-MTZing 7887ec90e6 fix rendertexture can not work correctly sometimes (#1581) 2018-11-02 21:45:32 +08:00
minggo a82655e716 use swtich/case instead of if/else to improve performace (#1578) 2018-11-01 14:37:02 +08:00
minggo 02b3458c56 rebound texture (#1573) 2018-11-01 11:41:41 +08:00
bofeng-song 77e5eb3e56 [feature] support lineCap and lineJoin (#1569)
* [feature] support lineCap and lineJoin

* [refine] move precondition to c++ layer
2018-10-29 20:50:54 +08:00
Arnold 01acfa4327 XMLHttpRequest fix readyState during onabort callback (#1567)
* fix http request readyState after abort()

* ignoreonreadystatechange when abort
2018-10-29 18:17:44 +08:00
Arnold 31946b642d XMLHttpRequest.abort readyStatue should be 0 (#1564) 2018-10-29 10:19:07 +08:00
leda 7c93a11905 runtime require: add context2d fill/rect method for android (#1561)
* add context2d fill & rect method for android

* workaround: draw a hairline to cover the border

* fix clear&fillrect parameter error

* add empty impl on Apple

* add empty Imple in win32

* enable "SUBPIXEL_TEXT_FLAG" flag to make the text more clear on Android

* move putImageData impl to native

* add empty _fillImageData impl on win32 & apple
2018-10-26 13:44:03 +08:00
wen xing liao 61bfcce6fa webgl function complete check parameters (#1553)
* Remove duplicate parameter check

contains drawArrays, drawElements, getBufferParameter, getRenderbufferParameter

* Remove duplicate parameter check

* complete check parameters

contains getUniformLocation, getShaderParameter, getProgramParameter, getProgramInfoLog, getShaderInfoLog, getShaderSource, getAttachedShaders, getFramebufferAttachmentParameter, getUniform

* complete check parameters

contains getUniformLocation, getShaderParameter, getProgramParameter, getProgramInfoLog, getShaderInfoLog, getShaderSource, getAttachedShaders, getFramebufferAttachmentParameter, getUniform

* getRenderbufferParameter complete check parameters

* getBufferParameter complete check parameters

* getFramebufferAttachmentParameter complete check parameters

* getVertexAttrib complete check parameters

* getUniform complete check parameters

* createShader complete check parameters

* Remove invalid code

* optimization getUniform
2018-10-25 11:13:56 +08:00