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

Issue 1090943004: O(1) SkPictureUtils::ApproxBytesUsed() (Closed)

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

Description

O(1) SkPictureUtils::ApproxBytesUsed() Chrome wants to call this more often, and it's quite slow today. Seems like this could be clearer if SkPictureUtils::ApproxBytesUsed() were SkPicture::approxBytesUsed(). BUG=chromium:471873 Committed: https://skia.googlesource.com/skia/+/98b8485a4cc911420e20af2670d21a5478a06264

Patch Set 1 #

Patch Set 2 : working? #

Total comments: 5

Patch Set 3 : const #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -45 lines) Patch
M include/core/SkPicture.h View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M src/core/SkPicture.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/core/SkPictureRecorder.cpp View 1 3 chunks +14 lines, -3 lines 0 comments Download
M src/core/SkRecorder.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M src/core/SkRecorder.cpp View 1 4 chunks +6 lines, -1 line 0 comments Download
M src/core/SkVarAlloc.h View 2 chunks +5 lines, -3 lines 0 comments Download
M src/core/SkVarAlloc.cpp View 3 chunks +5 lines, -22 lines 0 comments Download
M src/utils/SkPictureUtils.cpp View 1 2 chunks +1 line, -11 lines 0 comments Download
M tests/PictureTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (6 generated)
mtklein_C
5 years, 8 months ago (2015-04-21 17:59:42 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1090943004/20001
5 years, 8 months ago (2015-04-21 18:00:06 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-21 18:05:30 UTC) #6
reed1
https://codereview.chromium.org/1090943004/diff/20001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/1090943004/diff/20001/include/core/SkPicture.h#newcode277 include/core/SkPicture.h:277: size_t fApproxBytesUsedBySubPictures; can this field be const? https://codereview.chromium.org/1090943004/diff/20001/src/core/SkPictureRecorder.cpp File ...
5 years, 8 months ago (2015-04-21 22:13:04 UTC) #7
mtklein
https://codereview.chromium.org/1090943004/diff/20001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/1090943004/diff/20001/include/core/SkPicture.h#newcode277 include/core/SkPicture.h:277: size_t fApproxBytesUsedBySubPictures; On 2015/04/21 22:13:04, reed1 wrote: > can ...
5 years, 8 months ago (2015-04-21 22:18:31 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1090943004/40001
5 years, 8 months ago (2015-04-21 22:18:34 UTC) #10
reed1
Ah, I see that all this CL does is to cache the hierarchical answer. Got ...
5 years, 8 months ago (2015-04-21 22:20:19 UTC) #11
mtklein
On 2015/04/21 22:20:19, reed1 wrote: > Ah, I see that all this CL does is ...
5 years, 8 months ago (2015-04-21 22:20:58 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1090943004/40001
5 years, 8 months ago (2015-04-21 22:21:28 UTC) #15
commit-bot: I haz the power
5 years, 8 months ago (2015-04-21 22:24:05 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/98b8485a4cc911420e20af2670d21a5478a06264

Powered by Google App Engine
This is Rietveld 408576698