summaryrefslogtreecommitdiffstats
path: root/third_party/libpng
diff options
context:
space:
mode:
authorchenyu@chromium.org <chenyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-01 15:42:16 +0000
committerchenyu@chromium.org <chenyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-01 15:42:16 +0000
commitf0a6f4bb3d6a54ab6435af16dd87314058a4b843 (patch)
treee60ca4e557599cdd45aee0772e8f64d4fcfbcda3 /third_party/libpng
parent9a0feec03233962ba4c767ae6622e951e28136f1 (diff)
downloadchromium_src-f0a6f4bb3d6a54ab6435af16dd87314058a4b843.zip
chromium_src-f0a6f4bb3d6a54ab6435af16dd87314058a4b843.tar.gz
chromium_src-f0a6f4bb3d6a54ab6435af16dd87314058a4b843.tar.bz2
Add APIs to protect critical tasks on iOS.
On iOS, once an application goes into the background, it receives no CPU cycles until it is moved to foreground. At any time the OS may kill the application, but the application itself is never told or given any chance to clean up. Thus the time before going into the background is critical to ensure certain tasks have chance to complete. Luckily, an application may ask for a little more time when going into the background by calling certain methods that let the OS know it wants to perform some short-lived work in the background. This cl provides APIs to protect critical tasks in this case. - A class is provided to mark the beginning and end of a critical task for iOS. - A wrapper around a task is introduced that annotates that a class is "critical". Right now we have the wrapping code for iOS and it is just a no-op for other platforms. BUG=NONE Review URL: https://chromiumcodereview.appspot.com/10835032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149422 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/libpng')
0 files changed, 0 insertions, 0 deletions