diff options
Diffstat (limited to 'libs/hwui/DisplayListOp.h')
-rw-r--r-- | libs/hwui/DisplayListOp.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/hwui/DisplayListOp.h b/libs/hwui/DisplayListOp.h index d231907..105f45f 100644 --- a/libs/hwui/DisplayListOp.h +++ b/libs/hwui/DisplayListOp.h @@ -1005,7 +1005,7 @@ public: : DrawBoundedOp(paint), mPath(path) { float left, top, offset; uint32_t width, height; - computePathBounds(path, paint, left, top, offset, width, height); + PathCache::computePathBounds(path, paint, left, top, offset, width, height); left -= offset; top -= offset; mLocalBounds.set(left, top, left + width, top + height); @@ -1016,6 +1016,11 @@ public: return renderer.drawPath(mPath, getPaint(renderer)); } + virtual void onDrawOpDeferred(OpenGLRenderer& renderer) { + SkPaint* paint = getPaint(renderer); + renderer.getCaches().pathCache.precache(mPath, paint); + } + virtual void output(int level, uint32_t flags) { OP_LOG("Draw Path %p in "RECT_STRING, mPath, RECT_ARGS(mLocalBounds)); } |