Chromium Code Reviews
Descriptioncolor: Towards ColorTransform optimizations and code generation
Make ColorTransform store a list of individual steps, using the
separate type ColorTransform::Step. Move the optimization of
steps into a separate ColorTransformInternal::Simplify method,
called after constructing the full chain.
For readability, change ColorTransformInternal::Simplify to do
double-dispatch by adding a "get subclass of type" method instead
of using visitor pattern.
Use a ScopedQcmsProfile to manage the lifetime of QCMS transforms, and
add the ability to Join QCMS-based transform steps.
Separate frequently-used SkColorSpace functions into a new file
skia_color_space_util.cc/h.
A follow-on patch will allow merging arbitrary SkColorSpaceTransferFns
and add shader code generation.
BUG=667966
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2696603003
Cr-Commit-Position: refs/heads/master@{#450647}
Committed: https://chromium.googlesource.com/chromium/src/+/e2fc74b70d6ea11c08c6df1ef2b1372eccc5385f
Patch Set 1 #Patch Set 2 : Minimize diff #Patch Set 3 : Remove unneeded refactor #
Total comments: 5
Patch Set 4 : Review feedback #Patch Set 5 : Add sub-class #
Total comments: 10
Patch Set 6 : Incorporate review feedback #Patch Set 7 : Use using std:: for pow/log/exp/etc, fix skipped uses #Patch Set 8 : Hopefully fix windows build #Patch Set 9 : Keep fixing the windows build #
Dependent Patchsets: Messages
Total messages: 34 (21 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||