debugger: Abandon context when Qt changes it without notice
authorkkinnunen <kkinnunen@nvidia.com>
Wed, 11 Feb 2015 06:27:48 +0000 (22:27 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 11 Feb 2015 06:27:48 +0000 (22:27 -0800)
commit9e33d1dbccee9b13ac001dfc3094a503f9e84e9d
treebb84810ce1122c5d0d7cd37f259c74245f03e20d
parent3632f8473a7842b6f1351694d9b4071a66529224
debugger: Abandon context when Qt changes it without notice

Qt changes the context on many conditions. Abandon GrContext
in these cases.

Also call GrContext::resetContext during Qt GL paint callback,
the GL state may be touched by Qt.

Fixes the bug where changing between gpu and msaa would start
erroring in framebuffer binds, if the .skp had many layers.

Review URL: https://codereview.chromium.org/915573002
debugger/QT/SkGLWidget.cpp