-
Notifications
You must be signed in to change notification settings - Fork 250
Cleanup renderers #223
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
Cleanup renderers #223
Conversation
523b668 to
3b22f7c
Compare
|
@alexanderGugel this is very broad. Can you factor this into smaller prs? |
3b22f7c to
754e6ca
Compare
754e6ca to
9ce4972
Compare
|
@michaelobriena The commits mostly heavily depend on each other. It might look like a big change, but it's really not that much. The commit messages have been updated to reflect the changes. |
|
This looks good. |
* Remove unused properties * Move canvas resize to WebGLRenderer (like in DOMRenderer) * Follow _-prefix convention for private properties * Instantiate DOMRenderer in _initDOMRenderer method The primary intent of those changes is to make the interface of DOMRenderer and WebGLRenderer more consistent. The above changes make it easier to make the DOMRenderer optional (similar to WebGLRenderer).
The NEED_SIZE_FOR command is no longer needed since the CONTEXT_RESIZE command is being send automatically after creating the Context.
9ce4972 to
9219717
Compare
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.
No longer needed.
The DOM layer will always have the same size as the Context's root element.
|
@michaelobriena This removed DOMRenderer#getSize (redundant). IMO this has never been exposed to the user, but should this still be marked as a breaking change? |
|
@alexanderGugel Yea I would still consider it breaking. |
|
Ok, will change. Update: Actually the commit in question is already marked as breaking. |
|
@alexanderGugel landed as e8a96d3 |
No description provided.