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

Issue 11453014: Implement the logic to kick off image decoding jobs for TileManager (Closed)

Created:
8 years ago by qinmin
Modified:
8 years ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Implement the logic to kick off image decoding jobs for TileManager BUG=163980 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172813

Patch Set 1 #

Total comments: 44

Patch Set 2 : addressing comments #

Total comments: 16

Patch Set 3 : addressing comments #

Patch Set 4 : adding more null checks #

Total comments: 10

Patch Set 5 : using list instead of vector for faster deletion #

Patch Set 6 : moving pending_pixel_refs to the persistent section #

Total comments: 16

Patch Set 7 : Fix crashes #

Patch Set 8 : addressing comments #

Total comments: 14

Patch Set 9 : fixing nits #

Patch Set 10 : adding trace events for Decode and GatherPixelRefs() call #

Patch Set 11 : bugfix #

Patch Set 12 : bug fix #

Patch Set 13 : fix for win_rel trybot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -25 lines) Patch
M cc/picture.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M cc/picture.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +35 lines, -0 lines 0 comments Download
M cc/picture_pile_impl.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M cc/picture_pile_impl.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M cc/tile_manager.h View 1 2 3 4 5 6 7 8 5 chunks +18 lines, -1 line 0 comments Download
M cc/tile_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +148 lines, -22 lines 0 comments Download
M skia/skia.gyp View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
qinmin
PTAL, hopefully I understood everything correctly.
8 years ago (2012-12-05 18:53:15 UTC) #1
reveman
https://codereview.chromium.org/11453014/diff/1/cc/image.h File cc/image.h (right): https://codereview.chromium.org/11453014/diff/1/cc/image.h#newcode16 cc/image.h:16: class CC_EXPORT Image : public base::RefCountedThreadSafe<Image> { Does this ...
8 years ago (2012-12-05 19:48:46 UTC) #2
Alpha Left Google
In general this seems good. I just want to see the potential thrashing problem documented ...
8 years ago (2012-12-05 20:24:28 UTC) #3
reveman
https://codereview.chromium.org/11453014/diff/1/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/11453014/diff/1/cc/tile_manager.cc#newcode354 cc/tile_manager.cc:354: bool TileManager::HasUndecodedImages(Tile* tile, I guess we still need a ...
8 years ago (2012-12-05 20:28:35 UTC) #4
nduca
Lets not land this until we guarantee we wont starve due to cache evitction. E.g. ...
8 years ago (2012-12-05 21:10:42 UTC) #5
nduca
https://codereview.chromium.org/11453014/diff/1/cc/image.cc File cc/image.cc (right): https://codereview.chromium.org/11453014/diff/1/cc/image.cc#newcode22 cc/image.cc:22: static_cast<skia::LazyPixelRef*>(pixel_ref_.get())->Decode(); I think we should make redecoding work. E.g. ...
8 years ago (2012-12-06 08:46:53 UTC) #6
nduca
also, whats the purpose of Image?
8 years ago (2012-12-06 08:47:01 UTC) #7
qinmin
https://codereview.chromium.org/11453014/diff/1/cc/image.cc File cc/image.cc (right): https://codereview.chromium.org/11453014/diff/1/cc/image.cc#newcode15 cc/image.cc:15: Image::Image(const skia::RefPtr<SkPixelRef>& pixel_ref) : Somehow this is commonly used ...
8 years ago (2012-12-07 05:06:28 UTC) #8
reveman
It seems unpredictable whether we call PrepareToDecode() to check if a pixel ref is decoded ...
8 years ago (2012-12-07 21:14:54 UTC) #9
nduca
lgtm with @reveman for final review
8 years ago (2012-12-07 22:59:14 UTC) #10
qinmin
https://chromiumcodereview.appspot.com/11453014/diff/10001/cc/picture.cc File cc/picture.cc (right): https://chromiumcodereview.appspot.com/11453014/diff/10001/cc/picture.cc#newcode109 cc/picture.cc:109: if (memcmp((*refs)->getURI(), labelLazyDecoded, ok, using strncmp instead On 2012/12/07 ...
8 years ago (2012-12-07 23:41:55 UTC) #11
qinmin
When I tried the patch on Mac, the renderer always crash when calling into SkPictureUtils::GatherPixelRefs(). ...
8 years ago (2012-12-09 18:39:28 UTC) #12
qinmin
On 2012/12/09 18:39:28, qinmin wrote: > When I tried the patch on Mac, the renderer ...
8 years ago (2012-12-09 20:48:02 UTC) #13
qinmin
There seems to be a problem that all the returned SkPixelRefs* from SkPictureUtils::GatherPixelRefs() are not ...
8 years ago (2012-12-10 17:24:50 UTC) #14
reveman
https://codereview.chromium.org/11453014/diff/19001/cc/picture.cc File cc/picture.cc (right): https://codereview.chromium.org/11453014/diff/19001/cc/picture.cc#newcode99 cc/picture.cc:99: std::vector<SkPixelRef*>& result) { should this be a std::vector<LazyPixelRef*> and ...
8 years ago (2012-12-10 17:58:12 UTC) #15
qinmin
https://codereview.chromium.org/11453014/diff/19001/cc/picture.cc File cc/picture.cc (right): https://codereview.chromium.org/11453014/diff/19001/cc/picture.cc#newcode99 cc/picture.cc:99: std::vector<SkPixelRef*>& result) { On 2012/12/10 17:58:12, David Reveman wrote: ...
8 years ago (2012-12-10 22:52:51 UTC) #16
reveman
Almost there. https://codereview.chromium.org/11453014/diff/26002/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/11453014/diff/26002/cc/tile_manager.cc#newcode262 cc/tile_manager.cc:262: mts.has_image_decoding_info = false; Why do you clear ...
8 years ago (2012-12-11 01:35:42 UTC) #17
qinmin
https://codereview.chromium.org/11453014/diff/26002/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/11453014/diff/26002/cc/tile_manager.cc#newcode262 cc/tile_manager.cc:262: mts.has_image_decoding_info = false; moved it to the ctor On ...
8 years ago (2012-12-11 04:30:15 UTC) #18
nduca
Lets add something for this new metric into the rendering_stats structure. Eg decodingTime and numDecodeJobs. ...
8 years ago (2012-12-11 04:37:10 UTC) #19
reveman
lgtm with nits https://codereview.chromium.org/11453014/diff/25002/cc/picture.cc File cc/picture.cc (right): https://codereview.chromium.org/11453014/diff/25002/cc/picture.cc#newcode118 cc/picture.cc:118: (*refs)->getURI(), labelLazyDecoded, sizeof(labelLazyDecoded))) { I don't ...
8 years ago (2012-12-11 05:07:17 UTC) #20
qinmin
https://codereview.chromium.org/11453014/diff/25002/cc/picture.cc File cc/picture.cc (right): https://codereview.chromium.org/11453014/diff/25002/cc/picture.cc#newcode118 cc/picture.cc:118: (*refs)->getURI(), labelLazyDecoded, sizeof(labelLazyDecoded))) { ok, passing n=4 On 2012/12/11 ...
8 years ago (2012-12-11 05:36:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/11453014/40001
8 years ago (2012-12-12 22:07:18 UTC) #22
commit-bot: I haz the power
Presubmit check for 11453014-40001 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-12 22:07:24 UTC) #23
qinmin
Mike, would you please take a look at this Change? I need OWNERs approval for ...
8 years ago (2012-12-12 22:09:08 UTC) #24
reed1
(blind review) lgtm
8 years ago (2012-12-12 22:22:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/11453014/40001
8 years ago (2012-12-12 22:38:31 UTC) #26
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-12 23:33:22 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/11453014/49002
8 years ago (2012-12-12 23:45:04 UTC) #28
commit-bot: I haz the power
8 years ago (2012-12-13 04:28:06 UTC) #29
Message was sent while issue was closed.
Change committed as 172813

Powered by Google App Engine
This is Rietveld 408576698