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

Issue 2928433003: cc: Add scaling for checkered images. (Closed)

Created:
3 years, 6 months ago by Khushal
Modified:
3 years, 6 months ago
Reviewers:
vmpstr, ericrk
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Add scaling for checkered images. Currently checkered images are decoded at original size. Since the GPU image decode cache assumes that any decodes it has seen will also be used with raster, it uploads and keeps this decode both in discardable and in GPU memory, even if each use of this image at raster is downscaled, thereby increasing memory usage. This change has checker-imaging use the max raster scale and quality seen for an image before starting the decode, which has the max possibility of the image being used by the GPU cache. BUG=728796 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2928433003 Cr-Commit-Position: refs/heads/master@{#477891} Committed: https://chromium.googlesource.com/chromium/src/+/98125cbd86d41a4f9b7915ac2b67197f20b130b2

Patch Set 1 #

Patch Set 2 : fixd tests #

Total comments: 10

Patch Set 3 : comments #

Total comments: 2

Patch Set 4 : .. #

Patch Set 5 : rebase #

Patch Set 6 : .. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -118 lines) Patch
M cc/tiles/checker_image_tracker.h View 1 2 3 4 4 chunks +14 lines, -2 lines 0 comments Download
M cc/tiles/checker_image_tracker.cc View 1 2 3 4 7 chunks +84 lines, -24 lines 0 comments Download
M cc/tiles/checker_image_tracker_unittest.cc View 1 2 3 4 5 21 chunks +88 lines, -54 lines 0 comments Download
M cc/tiles/decoded_image_tracker.cc View 1 2 3 4 1 chunk +14 lines, -2 lines 0 comments Download
M cc/tiles/decoded_image_tracker_unittest.cc View 1 2 3 4 5 chunks +8 lines, -4 lines 0 comments Download
M cc/tiles/image_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/tiles/image_controller.cc View 2 chunks +3 lines, -16 lines 0 comments Download
M cc/tiles/image_controller_unittest.cc View 1 6 chunks +16 lines, -6 lines 0 comments Download
M cc/tiles/tile_manager.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 2 chunks +7 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (14 generated)
Khushal
PTAL.
3 years, 6 months ago (2017-06-06 19:06:19 UTC) #4
ericrk
https://codereview.chromium.org/2928433003/diff/20001/cc/tiles/checker_image_tracker.cc File cc/tiles/checker_image_tracker.cc (right): https://codereview.chromium.org/2928433003/diff/20001/cc/tiles/checker_image_tracker.cc#newcode166 cc/tiles/checker_image_tracker.cc:166: it->second.policy = (too_small || too_large) The policy already defaults ...
3 years, 6 months ago (2017-06-06 22:39:51 UTC) #6
Khushal
https://codereview.chromium.org/2928433003/diff/20001/cc/tiles/checker_image_tracker.cc File cc/tiles/checker_image_tracker.cc (right): https://codereview.chromium.org/2928433003/diff/20001/cc/tiles/checker_image_tracker.cc#newcode166 cc/tiles/checker_image_tracker.cc:166: it->second.policy = (too_small || too_large) On 2017/06/06 22:39:51, ericrk ...
3 years, 6 months ago (2017-06-07 00:43:32 UTC) #7
ericrk
lgtm https://codereview.chromium.org/2928433003/diff/40001/cc/tiles/checker_image_tracker.h File cc/tiles/checker_image_tracker.h (right): https://codereview.chromium.org/2928433003/diff/40001/cc/tiles/checker_image_tracker.h#newcode81 cc/tiles/checker_image_tracker.h:81: SkSize scale; nit: can you just do: SkSize ...
3 years, 6 months ago (2017-06-07 21:01:57 UTC) #9
Khushal
Thanks. I think this will conflict with a change vmpstr@ has in CQ, so I'll ...
3 years, 6 months ago (2017-06-07 23:21:33 UTC) #10
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/2928433003/80001
3 years, 6 months ago (2017-06-08 01:20:42 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/463546)
3 years, 6 months ago (2017-06-08 02:09:56 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/2928433003/80001
3 years, 6 months ago (2017-06-08 02:20:58 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/429365)
3 years, 6 months ago (2017-06-08 03:25:29 UTC) #19
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/2928433003/100001
3 years, 6 months ago (2017-06-08 03:37:45 UTC) #22
commit-bot: I haz the power
3 years, 6 months ago (2017-06-08 04:45:36 UTC) #25
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/98125cbd86d41a4f9b7915ac2b67...

Powered by Google App Engine
This is Rietveld 408576698