diff options
| author | 2019-05-23 16:14:52 -0700 | |
|---|---|---|
| committer | 2019-05-24 09:26:19 -0700 | |
| commit | 3ddc3fa3f0369b7f59b040c8946ff610296ba06c (patch) | |
| tree | 33f9fa511cd52456371d00a341113fa6571ec57b /opengl/libagl/TokenManager.cpp | |
| parent | 62e5a6fb6ced276debd4d9aaa1ace843155d0054 (diff) | |
dumpstate: Only attempt screencap with do_fb
When 'do_fb' is false, then our 'screenshot_path_' is empty,
so our call to TakeScreenshot() results in two Errors into
the logcat. We want to avoid that, especially during the
bugreport process.
So we follow the logic which 'do_early_screenshot_' uses, by
only calling TakeScreenshot() when 'do_fb' is true. We also
modify this other call to TakeScreenshot() to remove its
additional check, since we know if we get into this unexpected
state, we'll get non-fatal Errors in the logcat indicating it.
Bug: 133448994
Test: dumpstate_test
Change-Id: Ibb30bb908e12a498a341e2c5c1d9b59a7a16c2a5
Diffstat (limited to 'opengl/libagl/TokenManager.cpp')
0 files changed, 0 insertions, 0 deletions