diff options
| author | 2014-06-16 12:05:54 -0700 | |
|---|---|---|
| committer | 2014-06-17 10:15:46 -0700 | |
| commit | 734df4b4271e90e320f3ff37b4b0d49e92cb1e3c (patch) | |
| tree | bddbbf4abeb2f86d560a7747c993966935fe237d | |
| parent | 6b2df21ecacfa6826a85cabdf8d6fe0e81fe11d9 (diff) | |
Interrupt canvas before invoke
Change-Id: I5b818958f6255c594339bd10d9efa99e9e2c00d4
| -rw-r--r-- | libs/hwui/renderthread/CanvasContext.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp index 440f9659de12..dc1951beec72 100644 --- a/libs/hwui/renderthread/CanvasContext.cpp +++ b/libs/hwui/renderthread/CanvasContext.cpp @@ -537,9 +537,12 @@ void CanvasContext::invokeFunctor(Functor* functor) { requireGlContext(); mode = DrawGlInfo::kModeProcess; } - (*functor)(mode, NULL); if (mCanvas) { + mCanvas->interrupt(); + } + (*functor)(mode, NULL); + if (mCanvas) { mCanvas->resume(); } } |