cocos2d/cocos2d-iphone — pull request #920 by thayerandrews (2014-08-06 18:20:14+00:00)
Title: CCEffectNode - Fix a bunch of sizing issues and add tests for them

- Refactor CCRenderTexture's create method into create and createTextureAndFboWithPixelSize. In CCEffectNode, override the create method so pixel size is computed correctly. This fixes effect node's parent relative sizing while leaving render texture the same (because render texture needs even more changes that I don't want to tackle right now).
- Override setContentSizeType on effect node so it also marks the content size as dirty when it changes.
- If content size has changed since the last visit, destroy any allocated resources and recreate them (as CCRenderTexture already does).
- Pass the content size in points to CCEffectRenderer from sprite and effect node.
- Add a bunch of effect node sizing tests.