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

Issue 715423003: Restore bitmap dedup in SkPictureRecord. Cuts RAM usage of DM by half. (Closed)

Created:
6 years, 1 month ago by mtklein_C
Modified:
5 years, 4 months ago
Reviewers:
scroggo, mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Restore bitmap dedup in SkPictureRecord. Cuts RAM usage of DM by half. This should fix our failing 32-bit test bots. BUG=skia: Committed: https://skia.googlesource.com/skia/+/e069400cabd0edd3db52bbf1958063d3ed12ef28

Patch Set 1 #

Patch Set 2 : notes #

Total comments: 4

Patch Set 3 : Update equivalent #

Total comments: 3

Patch Set 4 : tweaks #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -5 lines) Patch
M src/core/SkPictureRecord.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 1 chunk +61 lines, -3 lines 1 comment Download

Messages

Total messages: 15 (5 generated)
reed1
https://codereview.chromium.org/715423003/diff/20001/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/715423003/diff/20001/src/core/SkPictureRecord.cpp#newcode905 src/core/SkPictureRecord.cpp:905: return false; wonder if we should just compare width/height ...
6 years, 1 month ago (2014-11-12 20:00:56 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/715423003/40001
6 years, 1 month ago (2014-11-12 20:32:49 UTC) #4
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 1 month ago (2014-11-12 20:32:50 UTC) #5
reed1
https://codereview.chromium.org/715423003/diff/40001/src/core/SkPictureRecord.cpp File src/core/SkPictureRecord.cpp (right): https://codereview.chromium.org/715423003/diff/40001/src/core/SkPictureRecord.cpp#newcode915 src/core/SkPictureRecord.cpp:915: if (!a.pixelRef() && !b.pixelRef()) { s/&&/|| https://codereview.chromium.org/715423003/diff/40001/src/core/SkPictureRecord.cpp#newcode918 src/core/SkPictureRecord.cpp:918: at ...
6 years, 1 month ago (2014-11-12 20:38:43 UTC) #6
mtklein
On 2014/11/12 20:38:43, reed1 wrote: > https://codereview.chromium.org/715423003/diff/40001/src/core/SkPictureRecord.cpp > File src/core/SkPictureRecord.cpp (right): > > https://codereview.chromium.org/715423003/diff/40001/src/core/SkPictureRecord.cpp#newcode915 > ...
6 years, 1 month ago (2014-11-12 20:41:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/715423003/60001
6 years, 1 month ago (2014-11-12 20:41:49 UTC) #10
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 1 month ago (2014-11-12 20:41:50 UTC) #11
reed1
lgtm
6 years, 1 month ago (2014-11-12 20:47:31 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/e069400cabd0edd3db52bbf1958063d3ed12ef28
6 years, 1 month ago (2014-11-12 20:49:53 UTC) #13
scroggo
5 years, 4 months ago (2015-08-06 18:54:40 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/715423003/diff/60001/src/core/SkPictureRecord...
File src/core/SkPictureRecord.cpp (right):

https://codereview.chromium.org/715423003/diff/60001/src/core/SkPictureRecord...
src/core/SkPictureRecord.cpp:953: // In Chrome (and hopefully Android?) they're
typically immutable.
Alas, no, on Android, there is no Java API to make a Bitmap immutable. (At
decode time, you can decode an immutable Bitmap, but supposedly developers want
to decode and then make changes. If you need to make modifications, you cannot
then make it immutable.)

Powered by Google App Engine
This is Rietveld 408576698