summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-03-22 19:13:11 -0700
committerJeff Brown <jeffbrown@google.com>2012-03-23 13:26:26 -0700
commit47847f3f4dcf2a0dbea0bc0e4f02528e21d37a88 (patch)
tree95198c432b05cef99e38a09165c2686906dc48bb /graphics/java/android/renderscript/ProgramVertexFixedFunction.java
parent3c4da3cad04ca878a4a37fcca3f3e2ff51d03fcb (diff)
Support enabling WAL using a flag when DB is opened.
Using enableWriteAheadLogging() to enable WAL is inefficient because we previously disabled WAL mode when the database was opened. Switching from WAL to PERSIST then back to WAL is inefficient and could slow down application launch time. It would be better to leave the database in WAL mode when we open it to begin with. To do that, we need to know ahead of time whether we will want to have WAL enabled for the newly opened database. Using this flag also reduces the chance that we will encounter an error enabling WAL mode due to there being other open connections to the database. Bug: 6124556 Change-Id: I38ec7a528baeda9f1ef77e25e88b3ca4b6296200
Diffstat (limited to 'graphics/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions