Loading libs/hwui/renderthread/CanvasContext.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -349,6 +349,8 @@ void CanvasContext::setSurface(EGLNativeWindowType window) { mDirtyRegionsEnabled = mGlobalContext->enableDirtyRegions(mEglSurface); mHaveNewSurface = true; makeCurrent(); } else { mRenderThread.removeFrameCallback(this); } } Loading Loading @@ -468,6 +470,10 @@ void CanvasContext::draw(Rect* dirty) { // Called by choreographer to do an RT-driven animation void CanvasContext::doFrame() { if (CC_UNLIKELY(!mCanvas || mEglSurface == EGL_NO_SURFACE)) { return; } ATRACE_CALL(); TreeInfo info; Loading Loading
libs/hwui/renderthread/CanvasContext.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -349,6 +349,8 @@ void CanvasContext::setSurface(EGLNativeWindowType window) { mDirtyRegionsEnabled = mGlobalContext->enableDirtyRegions(mEglSurface); mHaveNewSurface = true; makeCurrent(); } else { mRenderThread.removeFrameCallback(this); } } Loading Loading @@ -468,6 +470,10 @@ void CanvasContext::draw(Rect* dirty) { // Called by choreographer to do an RT-driven animation void CanvasContext::doFrame() { if (CC_UNLIKELY(!mCanvas || mEglSurface == EGL_NO_SURFACE)) { return; } ATRACE_CALL(); TreeInfo info; Loading