Merge "Allow RT animation of new renderer"

This commit is contained in:
Chris Craik
2015-12-16 18:25:35 +00:00
committed by Android (Google) Code Review

View File

@@ -513,9 +513,11 @@ void CanvasContext::draw() {
// Called by choreographer to do an RT-driven animation
void CanvasContext::doFrame() {
if (CC_UNLIKELY(!mCanvas || mEglSurface == EGL_NO_SURFACE)) {
return;
}
#if HWUI_NEW_OPS
if (CC_UNLIKELY(mEglSurface == EGL_NO_SURFACE)) return;
#else
if (CC_UNLIKELY(!mCanvas || mEglSurface == EGL_NO_SURFACE)) return;
#endif
prepareAndDraw(nullptr);
}