diff options
author | Bruce Dawson <brucedawson@google.com> | 2016-12-29 14:05:39 -0800 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-03 00:11:53 +0000 |
commit | 34194690328b612557f06ecec99b232d41888d4b (patch) | |
tree | cd36d78ba90f9a44ae22170588979f1b09b294b2 /tests/PDFGlyphsToUnicodeTest.cpp | |
parent | c0b4d21e13b33b787f26f3f3aa9570e9ed782959 (diff) |
Move two skia arrays to read-only data segment
The BCP47FromLanguageID and UnicodeFromMacRoman arrays are logically
const but were not marked as such. Marking them as const lets the
compiler/linker store them in the read-only data segment, which is
strictly better than being in read/write memory. This change moves about
3,000 bytes from the .data to .rdata segment in both chrome.dll and
chrome_child.dll.
BUG=677351
Change-Id: I85ff44d61aa232cf29178833fd2bb2e004032b9e
Reviewed-on: https://skia-review.googlesource.com/6424
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'tests/PDFGlyphsToUnicodeTest.cpp')
0 files changed, 0 insertions, 0 deletions