OSDN Git Service

Don't try to draw if there's no canvas or surface
authorJohn Reck <jreck@google.com>
Wed, 7 May 2014 20:11:00 +0000 (13:11 -0700)
committerJohn Reck <jreck@google.com>
Wed, 7 May 2014 20:19:28 +0000 (13:19 -0700)
commit368cdd85268999997fb495cf90c4417221797de0
treefd3194d75bfe69836ac286dd88cb7edde90fd140
parentebb9e69513b690881a5bad7bf45c6f32e0fc7062
Don't try to draw if there's no canvas or surface

 Bug: 14616376

 doFrame() can happen after the canvas or surface is destroyed,
 handle it gracefully

Change-Id: Ibbbbdbfa77fa2134bd2abc215ca1a0886d706969
libs/hwui/renderthread/CanvasContext.cpp