-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
GLKit workaround #trivial #54
Conversation
canClearContentsOfLayer now turned off for views with CAEAGLLayer
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.
Nits aside, LGTM although I'd prefer another approval from a core maintainer before merging.
Source/ASDisplayNode.mm
Outdated
|
||
// CAEAGLLayer | ||
if([view.layer.class isSubclassOfClass:[CAEAGLLayer class]]){ | ||
_flags.canClearContentsOfLayer = NO; |
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.
Nit: Indentation is off
Source/ASDisplayNode.mm
Outdated
@@ -588,6 +588,11 @@ - (UIView *)_locked_viewToLoad | |||
|| [_viewClass isSubclassOfClass:[UIVisualEffectView class]]) { | |||
self.opaque = NO; | |||
} | |||
|
|||
// CAEAGLLayer | |||
if([view.layer.class isSubclassOfClass:[CAEAGLLayer class]]){ |
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.
Nit: [view.layer class]
for consistency.
Fxd |
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.
We may should start now thinking about a better structure around specific classes that need special handling as there are quite a couple different cases now. But this looks good to me.
@maicki Agreed! |
@stephenkopylov Would you mind signing the CLA? |
@nguyenhuy |
@stephenkopylov Could you try to add the email to your account?
|
@nguyenhuy hooray! that was because I pushed PR from office, where I use different email. |
Sry guys, I missed one square bracket. Fxd |
Generated by 🚫 Danger |
@@ -1,11 +1,23 @@ | |||
// | |||
// ASDisplayNode.mm | |||
// AsyncDisplayKit | |||
// Texture |
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.
Nice catch!
@stephenkopylov Thanks for being patient and working through all of the hurdles. Hope to see more PRs from you! |
canClearContentsOfLayer now turned off for views with CAEAGLLayer
more:
#53