commit | 2d463b880aefa086893f327cf3e9bafbfd10882a | [log] [tgz] |
---|---|---|
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | Fri Dec 14 18:53:24 2012 |
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | Fri Dec 14 18:53:24 2012 |
tree | 00c7eb4e6bd4a4c2cc3f2e24738399368564bc12 | |
parent | ab7f73682437f2fa30a20e1001795798a7716e63 [diff] |
Only unbind a Graphics2D on destruction when we're actually bound. Previously if you made a new Graphics2D, bound it, and deleted the previous one, the first one would blindly unbind the current graphics 2D context in its destructor, which leaves you with a blank page. BUG=164302 Review URL: https://codereview.chromium.org/11571016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173181 0039d316-1c4b-4281-b951-d872f2087c98