diff options
author | Ben Wagner <bungeman@google.com> | 2017-03-17 17:56:28 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-20 14:21:30 +0000 |
commit | 1c1c740d2775bb19e3791e528586a73dec638ecb (patch) | |
tree | d1d0cfe13064b3ad25b0f0674aed9e587d7e39da /gn/utils.gni | |
parent | 65985646484633608a43809406eff95a05adbc2c (diff) |
GetResourceAsData to use SkData::MakeFromFileName directly.
The current code creates an SkFILEStream and then reads all the bytes
from it into an SkData. Instead, let the SkData just mmap the file.
Change-Id: I79e3550a84e6f54ccbbd7284f5cda81ce1fa9221
Reviewed-on: https://skia-review.googlesource.com/9877
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'gn/utils.gni')
0 files changed, 0 insertions, 0 deletions