diff options
author | ccameron <ccameron@chromium.org> | 2016-03-18 18:15:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-19 01:26:42 +0000 |
commit | 978fdeddb5dd51a5e94a0a688bb0c0ec946fe672 (patch) | |
tree | 4c0c08fc5c090dc33d3224fc980bc280e902e4d6 /base | |
parent | e28faac6f4198be9f5dda7b3dd1ccf85b68d3dc5 (diff) | |
download | chromium_src-978fdeddb5dd51a5e94a0a688bb0c0ec946fe672.zip chromium_src-978fdeddb5dd51a5e94a0a688bb0c0ec946fe672.tar.gz chromium_src-978fdeddb5dd51a5e94a0a688bb0c0ec946fe672.tar.bz2 |
Merge copy-pasted code into common base class
The image decoders for PNG, JPEG, and WEBP have the same
base class.
They also have the same copy-pasted block of code to compute
the color space transform from their source color profile to the
output device color profile. Move that to the base class.
Also move the methods to query whether or not a color profile has
been specified. Of note is that in all instances this is called
"hasColorProfile", but actually specifies if there is a transform. If
the source and destination color profiles matched, then there is
indeed a profile, but no transform. Do not change this behavior.
Make use of OwnPtr for QCMS structures.
Delete the helper class OutputDeviceProfile which was
instantiated as a static local, and replace it with a single global
variable with a lock.
Delete some other now-unused data structures and typedefs.
BUG=
Review URL: https://codereview.chromium.org/1816493002
Cr-Commit-Position: refs/heads/master@{#382166}
Diffstat (limited to 'base')
0 files changed, 0 insertions, 0 deletions