Fix unbound memory consumption problem with run away deferred canvases.
authorjunov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 23 Jul 2012 13:35:14 +0000 (13:35 +0000)
committerjunov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 23 Jul 2012 13:35:14 +0000 (13:35 +0000)
commitbfeddae9da240693441556b2f278827e213f75e8
treeda8eae02490967677ab398adef409ea0bfdcf6ca
parent47580694fbe974a065caf7c39c3d2075708c2018
Fix unbound memory consumption problem with run away deferred canvases.

With this CL, deferred canvases will trigger a flush when then the
memory allocated for recording commands (including flattened objects)
exceeds 64MB.

TEST=DeferredCanvas skia unit test, test step TestDeferredCanvasMemoryLimit
BUG=http://code.google.com/p/chromium/issues/detail?id=137884
Review URL: https://codereview.appspot.com/6425053

git-svn-id: http://skia.googlecode.com/svn/trunk@4714 2bbb7eff-a529-9590-31e7-b0007b416f81
include/utils/SkDeferredCanvas.h
src/utils/SkDeferredCanvas.cpp
tests/DeferredCanvasTest.cpp