Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Issue 2849563005: cc: Reduce the size of PaintOpBuffer. (Closed)

Created:
3 years, 7 months ago by danakj
Modified:
3 years, 7 months ago
Reviewers:
enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, vmpstr
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+397 lines, -290 lines) Patch
M cc/paint/paint_op_buffer.h View 1 14 chunks +150 lines, -145 lines 0 comments Download
M cc/paint/paint_op_buffer.cc View 1 2 3 9 chunks +247 lines, -145 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
danakj
3 years, 7 months ago (2017-04-29 00:07:45 UTC) #2
danakj
It appears this super segfaults so something is wrong tho xD
3 years, 7 months ago (2017-04-29 00:10:59 UTC) #4
danakj
Fixed PTAL
3 years, 7 months ago (2017-05-03 18:11:29 UTC) #5
enne (OOO)
https://codereview.chromium.org/2849563005/diff/40001/cc/paint/paint_op_buffer.cc File cc/paint/paint_op_buffer.cc (right): https://codereview.chromium.org/2849563005/diff/40001/cc/paint/paint_op_buffer.cc#newcode65 cc/paint/paint_op_buffer.cc:65: static_assert(!T::kHasPaintFlags, ""); Maybe nice to leave a comment in ...
3 years, 7 months ago (2017-05-03 18:30:41 UTC) #10
danakj
https://codereview.chromium.org/2849563005/diff/40001/cc/paint/paint_op_buffer.cc File cc/paint/paint_op_buffer.cc (right): https://codereview.chromium.org/2849563005/diff/40001/cc/paint/paint_op_buffer.cc#newcode65 cc/paint/paint_op_buffer.cc:65: static_assert(!T::kHasPaintFlags, ""); On 2017/05/03 18:30:40, enne wrote: > Maybe ...
3 years, 7 months ago (2017-05-03 19:10:46 UTC) #13
enne (OOO)
lgtm
3 years, 7 months ago (2017-05-03 20:50:51 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2849563005/80001
3 years, 7 months ago (2017-05-03 20:52:22 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 21:08:55 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/954ca39066bbc77ca7c653c76a02...

Powered by Google App Engine
This is Rietveld 408576698