Merge "Interrupt canvas before invoke"

This commit is contained in:
Chris Craik
2014-06-17 18:05:02 +00:00
committed by Android (Google) Code Review

View File

@@ -537,8 +537,11 @@ void CanvasContext::invokeFunctor(Functor* functor) {
requireGlContext();
mode = DrawGlInfo::kModeProcess;
}
(*functor)(mode, NULL);
if (mCanvas) {
mCanvas->interrupt();
}
(*functor)(mode, NULL);
if (mCanvas) {
mCanvas->resume();
}