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

Issue 1060863004: Reduce sizeof(SkPicture::Analysis) from 24 bytes to 2 bytes. (Closed)

Created:
5 years, 8 months ago by jbroman
Modified:
5 years, 8 months ago
CC:
reviews_skia.org, Stephen White
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Reduce sizeof(SkPicture::Analysis) from 24 bytes to 2 bytes. This saves "up to" 22 bytes per SkPicture. Due to alignment, this reduces sizeof(SkPicture): - from 88 to 72 bytes on Linux x64 - from 68 to 48 bytes on Android (with Chrome's build settings) It also somewhat simplifies the GPU veto logic. BUG=skia: [mtklein] No public API changes. TBR=reed@google.com Committed: https://skia.googlesource.com/skia/+/de8667b81f2fed2fbecba68e751756a48df5e0dd

Patch Set 1 : #

Patch Set 2 : rebase #

Total comments: 2

Patch Set 3 : #

Total comments: 4

Patch Set 4 : robertphillips nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -43 lines) Patch
M include/core/SkPicture.h View 1 2 chunks +4 lines, -8 lines 0 comments Download
M src/core/SkPicture.cpp View 1 2 3 6 chunks +12 lines, -35 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
jbroman
Unless there's a reason the Ganesh veto still wants to track all this separately, this ...
5 years, 8 months ago (2015-04-23 17:04:14 UTC) #3
mtklein
I think this is a very good idea. We seem to be profligate with our ...
5 years, 8 months ago (2015-04-27 13:43:00 UTC) #5
jbroman
On 2015/04/27 13:43:00, mtklein wrote: > I think this is a very good idea. We ...
5 years, 8 months ago (2015-04-27 14:30:50 UTC) #6
robertphillips
lgtm + nits https://codereview.chromium.org/1060863004/diff/60001/src/core/SkPicture.cpp File src/core/SkPicture.cpp (right): https://codereview.chromium.org/1060863004/diff/60001/src/core/SkPicture.cpp#newcode135 src/core/SkPicture.cpp:135: rm space in "...Effects (0)" ? ...
5 years, 8 months ago (2015-04-27 14:41:30 UTC) #7
mtklein
Ah, gotcha. SGTM.
5 years, 8 months ago (2015-04-27 14:44:18 UTC) #8
jbroman
+reed for skia OWNERS https://codereview.chromium.org/1060863004/diff/60001/src/core/SkPicture.cpp File src/core/SkPicture.cpp (right): https://codereview.chromium.org/1060863004/diff/60001/src/core/SkPicture.cpp#newcode135 src/core/SkPicture.cpp:135: On 2015/04/27 14:41:30, robertphillips wrote: ...
5 years, 8 months ago (2015-04-27 14:48:10 UTC) #10
robertphillips
Looks like Mike is out today - adding Brian.
5 years, 8 months ago (2015-04-27 14:49:37 UTC) #12
mtklein
lgtm Just gonna jam this in... there aren't any public API changes here that need ...
5 years, 8 months ago (2015-04-27 14:49:49 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1060863004/80001
5 years, 8 months ago (2015-04-27 14:49:59 UTC) #17
commit-bot: I haz the power
5 years, 8 months ago (2015-04-27 14:55:36 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://skia.googlesource.com/skia/+/de8667b81f2fed2fbecba68e751756a48df5e0dd

Powered by Google App Engine
This is Rietveld 408576698