reduce alloc overhead for SkCanvas
authorreed <reed@chromium.org>
Tue, 7 Apr 2015 11:40:48 +0000 (04:40 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Apr 2015 11:40:48 +0000 (04:40 -0700)
commitb679ca8926a832274b14fdb512f88f64b61d32ea
tree9f3f568ac6153528bcef9291281f722cfd9ec65a
parentff271c29a64f59d538e644210b0f207666f856b5
reduce alloc overhead for SkCanvas

use pre-allocated space in the canvas to avoid initial calls to malloc

BUG=skia:

Review URL: https://codereview.chromium.org/1060583007
include/core/SkCanvas.h
src/core/SkCanvas.cpp