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
Video - Bail out if viewer is not visible #4995
Conversation
this.vsync_ = vsyncFor(win); | ||
|
||
/** @private @const {!../service/viewer-impl.Viewer} */ | ||
this.viewer_ = viewerFor(win); |
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.
I'd consider not using an instance var for rarely used services.
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.
viewer.isVisible()
can be called several times per video, might be worth caching a reference here.
The call is super fast. Not worth caching except for stuff like animations On Wed, Sep 14, 2016 at 2:51 PM, Ali Ghassemi notifications@github.com
|
Done |
ugh, still can't merge. Can you merge this @cramforce ? |
No description provided.