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

Issue 207943002: cc: Reduce size of cc::ResourceProvider::Resource class (Closed)

Created:
6 years, 9 months ago by jadahl
Modified:
6 years, 9 months ago
Reviewers:
danakj, reveman, ccameron
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

cc: Reduce size of cc::ResourceProvider::Resource class The compositor will at times keep several hundreds instances of this class when a tab is visible. This patch reduces the size of every instance by 20 bytes (from 300 bytes to 280 bytes) on 32 bit ARM compiled with GCC 4.6. Also adds missing initializers for a field added in https://codereview.chromium.org/197223003 BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259319

Patch Set 1 #

Total comments: 6

Patch Set 2 : Group bools; use 1 bit per bool #

Patch Set 3 : Rebase; conflict resolution; added missing initializer for bool added by other patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -28 lines) Patch
M cc/resources/resource_provider.h View 1 2 1 chunk +11 lines, -11 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 4 chunks +20 lines, -17 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
jadahl
Hi, This patch makes the cc::ResourceProvider::Resource class more compact. I'm not sure you are interested ...
6 years, 9 months ago (2014-03-21 10:32:52 UTC) #1
danakj
https://codereview.chromium.org/207943002/diff/1/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/207943002/diff/1/cc/resources/resource_provider.h#newcode415 cc/resources/resource_provider.h:415: uint16 lock_for_read_count; style guide says to use signed int ...
6 years, 9 months ago (2014-03-21 16:04:22 UTC) #2
jadahl
https://codereview.chromium.org/207943002/diff/1/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/207943002/diff/1/cc/resources/resource_provider.h#newcode415 cc/resources/resource_provider.h:415: uint16 lock_for_read_count; On 2014/03/21 16:04:22, danakj wrote: > style ...
6 years, 9 months ago (2014-03-21 16:54:50 UTC) #3
danakj
https://codereview.chromium.org/207943002/diff/1/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/207943002/diff/1/cc/resources/resource_provider.h#newcode420 cc/resources/resource_provider.h:420: bool dirty_image : 1; On 2014/03/21 16:54:51, jadahl wrote: ...
6 years, 9 months ago (2014-03-21 18:04:01 UTC) #4
jadahl
https://codereview.chromium.org/207943002/diff/1/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/207943002/diff/1/cc/resources/resource_provider.h#newcode420 cc/resources/resource_provider.h:420: bool dirty_image : 1; On 2014/03/21 18:04:01, danakj wrote: ...
6 years, 9 months ago (2014-03-24 09:54:26 UTC) #5
danakj
On Mar 24, 2014 5:54 AM, <jadahl@opera.com> wrote: > > > https://codereview.chromium.org/207943002/diff/1/cc/resources/resource_provider.h > File cc/resources/resource_provider.h ...
6 years, 9 months ago (2014-03-24 16:18:02 UTC) #6
jadahl
Uploaded a new version that just groups bools and limits their field size to 1 ...
6 years, 9 months ago (2014-03-24 16:52:38 UTC) #7
danakj
lgtm
6 years, 9 months ago (2014-03-24 18:05:22 UTC) #8
jadahl
The CQ bit was checked by jadahl@opera.com
6 years, 9 months ago (2014-03-25 08:16:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jadahl@opera.com/207943002/20001
6 years, 9 months ago (2014-03-25 08:16:34 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-25 08:16:40 UTC) #11
commit-bot: I haz the power
Failed to apply patch for cc/resources/resource_provider.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-25 08:16:40 UTC) #12
jadahl
New upload (rebased with conflicts). Also added some missing initializers for a bool added by ...
6 years, 9 months ago (2014-03-25 09:49:53 UTC) #13
danakj
LGTM
6 years, 9 months ago (2014-03-25 16:15:57 UTC) #14
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 9 months ago (2014-03-25 16:15:59 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jadahl@opera.com/207943002/30001
6 years, 9 months ago (2014-03-25 16:16:33 UTC) #16
commit-bot: I haz the power
6 years, 9 months ago (2014-03-25 20:20:16 UTC) #17
Message was sent while issue was closed.
Change committed as 259319

Powered by Google App Engine
This is Rietveld 408576698