This should switch all our internal tools that aren't clever about it over to SkRecord pictures. (The clever tools know what they're doing.)
Also, deletes the old SkPicture::clone() path. return this or die.
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/
7b705bb17e09508e3761b54f59833b1ceb4ce9a6
R=robertphillips@google.com, mtklein@google.com, reed@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/
481743003
if (NULL == data) {
return NULL;
}
- return Forwardport(SkPicture(data, info.fWidth, info.fHeight));
+ const SkPicture src(data, info.fWidth, info.fHeight);
+ return Forwardport(src);
}
return NULL;
if (NULL == data) {
return NULL;
}
- return Forwardport(SkPicture(data, info.fWidth, info.fHeight));
+ const SkPicture src(data, info.fWidth, info.fHeight);
+ return Forwardport(src);
}
return NULL;