Merge pull request #1381 from pandamicro/develop

Resolve bug for cc.CHECK_GL_ERROR_DEBUG function in canvas mode
Update CCMacro.js
Merge pull request #1383 from WanderWang/CCMacro

Optimize CCMacro's Performance
Update CCSpriteFrame.js
Merge pull request #1389 from WanderWang/CCSpriteFrameOptimize

Optimize CCSpriteFrame's init performance
Fixed #3371: TMXLayer size set