diff options
author | 2014-09-25 15:07:55 -0400 | |
---|---|---|
committer | 2014-09-25 15:07:55 -0400 | |
commit | 587c5a2b8916b02c387e5e3369ad80589efe9ec1 (patch) | |
tree | 2f03f895aa1276c6b186b4c7078b92136573541d /src/core | |
parent | 610a015fda84cd5d1e3f3f826bab393f1193bc0e (diff) |
Seems that some of our compliers can't infer this type, though most can.
BUG=skia:
Review URL: https://codereview.chromium.org/603263002
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkPictureData.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkPictureData.cpp b/src/core/SkPictureData.cpp index a7df53d00a..fbef0e8e55 100644 --- a/src/core/SkPictureData.cpp +++ b/src/core/SkPictureData.cpp @@ -119,7 +119,8 @@ SkPictureData::SkPictureData(const SkPictureData& src, SkPictCopyInfo* deepCopyI SkTypefacePlayback* tfPlayback = deepCopyInfo->controller.getTypefacePlayback(); for (int i = 0; i < paintCount; i++) { if (deepCopyInfo->paintData[i]) { - deepCopyInfo->paintData[i]->unflatten(&fPaints->writableAt(i), bmHeap, tfPlayback); + deepCopyInfo->paintData[i]->unflatten<SkPaintFlatteningTraits>( + &fPaints->writableAt(i), bmHeap, tfPlayback); } else { // needs_deep_copy was false, so just need to assign fPaints->writableAt(i) = src.fPaints->at(i); |