Chromium Code Reviews
Descriptioncc: Reduce the size of PaintOpBuffer.
Step 1:
Moves the non-type-dependent code out of push_internal to a helper
method.
Step 2:
Moves PaintFlags up to a base PaintOpWithFlags class.
Makes FooPaintOp::Raster static.
Moves the non-type-dependant code out of PaintWithAlpha templates (with
a function pointer to FooPaintOp::Raster)
Removes the Rasterizer::Raster template methods, and the RasterFunction
lambdas, replacing them with function pointers to FooPaintOp::Raster
directly.
These changes reduce MonochromePublic.apk from 82,050,524 bytes to
82,042,332 bytes. Before PaintOpBuffer the apk was at 82,034,124 bytes,
so this reduces the binary by 50% of the original growth.
R=enne@chromium.org
BUG=716393, 671433
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2849563005
Cr-Commit-Position: refs/heads/master@{#469121}
Committed: https://chromium.googlesource.com/chromium/src/+/954ca39066bbc77ca7c653c76a02467644c601d2
Patch Set 1 : paintrecord-size: rebaseandfix #Patch Set 2 : paintrecord-size: fixcount #
Total comments: 5
Patch Set 3 : paintrecord-size: . #Patch Set 4 : paintrecord-size: review #
Messages
Total messages: 21 (13 generated)
|
||||||||||||||||||||||||||||