Initialize written paths and strokerecs lazily during GPU drawPath
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 14 Jan 2014 18:42:34 +0000 (18:42 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 14 Jan 2014 18:42:34 +0000 (18:42 +0000)
commitf0c41e24d5322022c7678b60837274c1340fc109
treeb58ee5102bf7d71728c3f8fe761a1e29ec33debc
parent46de153d4e887d82b5309316ed2e26e5cdc291f0
Initialize written paths and strokerecs lazily during GPU drawPath

Initialize SkPaths and SkStrokeRecs lazily during GPU drawPath calls.
The constructors seem to appear in some profiler results on ARM (~1%).

R=bsalomon@google.com, robertphillips@google.com

Author: kkinnunen@nvidia.com

Review URL: https://codereview.chromium.org/118143002

git-svn-id: http://skia.googlecode.com/svn/trunk@13069 2bbb7eff-a529-9590-31e7-b0007b416f81
src/gpu/GrContext.cpp
src/gpu/SkGpuDevice.cpp