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

Issue 2669933002: cc: Optimize ImageDecodeCacheKey::FromDrawImage. (Closed)

Created:
3 years, 10 months ago by vmpstr
Modified:
3 years, 10 months ago
Reviewers:
enne (OOO), ericrk
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Optimize ImageDecodeCacheKey::FromDrawImage. This patch reduces the time spent in ::FromDrawImage call by 50%. Comes with a corresponding perftest. This is a frequently used function when it comes to dealing with software images, so any savings should be good. Perftest result without the sidc change (z620): *RESULT software_image_decode_cache_fromdrawimage: result= 318435.53125 runs/s With the change: *RESULT software_image_decode_cache_fromdrawimage: result= 657221.0625 runs/s (+106%) R=enne@chromium.org, ericrk@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2669933002 Cr-Commit-Position: refs/heads/master@{#447882} Committed: https://chromium.googlesource.com/chromium/src/+/13778fbf14dab7f317d3679e75dbdd1aad28697e

Patch Set 1 #

Patch Set 2 : 8k->4k #

Total comments: 8

Patch Set 3 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -6 lines) Patch
M cc/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M cc/playback/draw_image.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/tiles/software_image_decode_cache.cc View 1 4 chunks +18 lines, -5 lines 0 comments Download
A cc/tiles/software_image_decode_cache_perftest.cc View 1 2 1 chunk +85 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
vmpstr
Please take a look.
3 years, 10 months ago (2017-02-02 00:11:31 UTC) #3
enne (OOO)
https://codereview.chromium.org/2669933002/diff/20001/cc/tiles/software_image_decode_cache.cc File cc/tiles/software_image_decode_cache.cc (right): https://codereview.chromium.org/2669933002/diff/20001/cc/tiles/software_image_decode_cache.cc#newcode182 cc/tiles/software_image_decode_cache.cc:182: gfx::Rect GetSrcRect(const DrawImage& image) { Does this end up ...
3 years, 10 months ago (2017-02-02 00:36:42 UTC) #4
ericrk
https://codereview.chromium.org/2669933002/diff/20001/cc/tiles/software_image_decode_cache.cc File cc/tiles/software_image_decode_cache.cc (right): https://codereview.chromium.org/2669933002/diff/20001/cc/tiles/software_image_decode_cache.cc#newcode182 cc/tiles/software_image_decode_cache.cc:182: gfx::Rect GetSrcRect(const DrawImage& image) { Can we just store ...
3 years, 10 months ago (2017-02-02 00:37:56 UTC) #5
vmpstr
https://codereview.chromium.org/2669933002/diff/20001/cc/tiles/software_image_decode_cache.cc File cc/tiles/software_image_decode_cache.cc (right): https://codereview.chromium.org/2669933002/diff/20001/cc/tiles/software_image_decode_cache.cc#newcode182 cc/tiles/software_image_decode_cache.cc:182: gfx::Rect GetSrcRect(const DrawImage& image) { On 2017/02/02 00:36:41, enne ...
3 years, 10 months ago (2017-02-02 00:52:45 UTC) #6
ericrk
lgtm https://codereview.chromium.org/2669933002/diff/20001/cc/tiles/software_image_decode_cache.cc File cc/tiles/software_image_decode_cache.cc (right): https://codereview.chromium.org/2669933002/diff/20001/cc/tiles/software_image_decode_cache.cc#newcode182 cc/tiles/software_image_decode_cache.cc:182: gfx::Rect GetSrcRect(const DrawImage& image) { On 2017/02/02 00:52:45, ...
3 years, 10 months ago (2017-02-02 22:21:28 UTC) #7
enne (OOO)
lgtm
3 years, 10 months ago (2017-02-02 22:22:53 UTC) #8
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/2669933002/40001
3 years, 10 months ago (2017-02-02 22:30:17 UTC) #10
commit-bot: I haz the power
3 years, 10 months ago (2017-02-02 23:44:35 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/13778fbf14dab7f317d3679e75db...

Powered by Google App Engine
This is Rietveld 408576698