summaryrefslogtreecommitdiff
path: root/opengl/libagl/TokenManager.cpp
diff options
context:
space:
mode:
author Greg Kaiser <gkaiser@google.com> 2019-05-23 16:14:52 -0700
committer Greg Kaiser <gkaiser@google.com> 2019-05-24 09:26:19 -0700
commit3ddc3fa3f0369b7f59b040c8946ff610296ba06c (patch)
tree33f9fa511cd52456371d00a341113fa6571ec57b /opengl/libagl/TokenManager.cpp
parent62e5a6fb6ced276debd4d9aaa1ace843155d0054 (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