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

Issue 18191020: UI Resource Manager (Closed)

Created:
7 years, 5 months ago by powei
Modified:
7 years, 4 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, David Trainor- moved to gerrit, clholgat, jdduke (slow)
Base URL:
https://src.chromium.org/chrome/trunk/src/
Visibility:
Public.

Description

Patch Set 1 : #

Total comments: 16

Patch Set 2 : #

Total comments: 63

Patch Set 3 : #

Total comments: 99

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Total comments: 19

Patch Set 6 : Switched to resource client instead of callback #

Total comments: 21

Patch Set 7 : #

Total comments: 38

Patch Set 8 : Fixed nits and bugs, removed cruft, added test for Create/DeleteUIResource in LTHI #

Total comments: 2

Patch Set 9 : Added DCHECK of resource queue size to PushPropertiesTo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1167 lines, -423 lines) Patch
M cc/cc.gyp View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/scrollbar_layer.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -21 lines 0 comments Download
M cc/layers/scrollbar_layer.cc View 1 2 3 4 5 6 7 7 chunks +76 lines, -172 lines 0 comments Download
M cc/layers/scrollbar_layer_impl.h View 1 2 3 4 5 6 7 4 chunks +7 lines, -8 lines 0 comments Download
M cc/layers/scrollbar_layer_impl.cc View 1 2 3 4 5 6 7 5 chunks +16 lines, -22 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 4 5 6 7 6 chunks +53 lines, -102 lines 0 comments Download
A cc/resources/scoped_ui_resource.h View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
A cc/resources/scoped_ui_resource.cc View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download
A cc/resources/ui_resource_bitmap.h View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download
A cc/resources/ui_resource_bitmap.cc View 1 2 3 4 5 6 1 chunk +26 lines, -0 lines 0 comments Download
A cc/resources/ui_resource_client.h View 1 2 3 4 5 6 1 chunk +34 lines, -0 lines 0 comments Download
A cc/test/fake_scoped_ui_resource.h View 1 2 3 4 5 6 7 1 chunk +33 lines, -0 lines 0 comments Download
A cc/test/fake_scoped_ui_resource.cc View 1 2 3 4 5 6 1 chunk +38 lines, -0 lines 0 comments Download
M cc/test/fake_scrollbar_layer.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -8 lines 0 comments Download
M cc/test/fake_scrollbar_layer.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 6 7 5 chunks +38 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 7 7 chunks +73 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 5 chunks +17 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +47 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +46 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 14 chunks +187 lines, -73 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 4 5 6 7 3 chunks +275 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 5 6 7 8 5 chunks +12 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +34 lines, -2 lines 0 comments Download

Messages

Total messages: 46 (0 generated)
powei
Sorry for the delay. Please take a look. Thanks!
7 years, 5 months ago (2013-06-29 07:09:47 UTC) #1
powei
On 2013/06/29 07:09:47, powei wrote: > Sorry for the delay. Please take a look. Thanks! ...
7 years, 5 months ago (2013-07-08 22:45:56 UTC) #2
aelias_OOO_until_Jul13
Could you modify the existing ScrollbarLayer in place instead? With this plan, there's no need ...
7 years, 5 months ago (2013-07-08 23:40:49 UTC) #3
aelias_OOO_until_Jul13
No need for a #define either. Let's just make UIResources the default way of using ...
7 years, 5 months ago (2013-07-08 23:41:57 UTC) #4
enne (OOO)
https://codereview.chromium.org/18191020/diff/20001/cc/layers/picture_scrollbar_layer.cc File cc/layers/picture_scrollbar_layer.cc (right): https://codereview.chromium.org/18191020/diff/20001/cc/layers/picture_scrollbar_layer.cc#newcode281 cc/layers/picture_scrollbar_layer.cc:281: // Is this the only way? I think you're ...
7 years, 5 months ago (2013-07-09 17:57:48 UTC) #5
aelias_OOO_until_Jul13
https://codereview.chromium.org/18191020/diff/20001/cc/layers/picture_scrollbar_layer.cc File cc/layers/picture_scrollbar_layer.cc (right): https://codereview.chromium.org/18191020/diff/20001/cc/layers/picture_scrollbar_layer.cc#newcode295 cc/layers/picture_scrollbar_layer.cc:295: void ScrollbarLayer::UIResourceLost(UIResourceId id) { On 2013/07/09 17:57:48, enne wrote: ...
7 years, 5 months ago (2013-07-09 20:22:19 UTC) #6
enne (OOO)
https://codereview.chromium.org/18191020/diff/20001/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/18191020/diff/20001/cc/trees/layer_tree_host.h#newcode268 cc/trees/layer_tree_host.h:268: void UIResourceReady(UIResourceId id); On 2013/07/09 20:22:19, aelias wrote: > ...
7 years, 5 months ago (2013-07-09 20:32:52 UTC) #7
aelias_OOO_until_Jul13
https://codereview.chromium.org/18191020/diff/20001/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/18191020/diff/20001/cc/trees/layer_tree_host.h#newcode268 cc/trees/layer_tree_host.h:268: void UIResourceReady(UIResourceId id); On 2013/07/09 20:32:52, enne wrote: > ...
7 years, 5 months ago (2013-07-09 20:54:29 UTC) #8
powei
https://codereview.chromium.org/18191020/diff/20001/cc/layers/picture_scrollbar_layer.cc File cc/layers/picture_scrollbar_layer.cc (right): https://codereview.chromium.org/18191020/diff/20001/cc/layers/picture_scrollbar_layer.cc#newcode281 cc/layers/picture_scrollbar_layer.cc:281: // Is this the only way? On 2013/07/09 17:57:48, ...
7 years, 5 months ago (2013-07-10 17:47:18 UTC) #9
jamesr
On 2013/07/10 17:47:18, powei wrote: > https://codereview.chromium.org/18191020/diff/20001/cc/resources/ui_resource_manager.cc#newcode24 > cc/resources/ui_resource_manager.cc:24: delete [] > reinterpret_cast<uint8_t*>(pixels_); > On ...
7 years, 5 months ago (2013-07-10 17:53:46 UTC) #10
powei
Another round of review. Minor update wrt the comments. Still unclear about internal formats of ...
7 years, 5 months ago (2013-07-10 18:43:07 UTC) #11
danakj
Can there be a bug attached to this CL?
7 years, 5 months ago (2013-07-10 21:57:54 UTC) #12
powei
On 2013/07/10 21:57:54, danakj wrote: > Can there be a bug attached to this CL? ...
7 years, 5 months ago (2013-07-10 22:19:16 UTC) #13
danakj
Thanks! On Wed, Jul 10, 2013 at 3:19 PM, <powei@chromium.org> wrote: > On 2013/07/10 21:57:54, ...
7 years, 5 months ago (2013-07-10 22:33:39 UTC) #14
aelias_OOO_until_Jul13
Looks good structurally, here's a lot of comments about details. Two high-level comments: 1) let's ...
7 years, 5 months ago (2013-07-10 23:07:21 UTC) #15
tfarina
https://codereview.chromium.org/18191020/diff/20001/cc/resources/ui_resource_manager.cc File cc/resources/ui_resource_manager.cc (right): https://codereview.chromium.org/18191020/diff/20001/cc/resources/ui_resource_manager.cc#newcode24 cc/resources/ui_resource_manager.cc:24: delete [] reinterpret_cast<uint8_t*>(pixels_); On 2013/07/09 17:57:48, enne wrote: > ...
7 years, 5 months ago (2013-07-10 23:30:45 UTC) #16
powei
Most comments have been addressed. My only question is, in scrollbar_layer.h, whether "Update" can really ...
7 years, 5 months ago (2013-07-11 23:54:43 UTC) #17
aelias_OOO_until_Jul13
https://codereview.chromium.org/18191020/diff/50001/cc/layers/scrollbar_layer.h File cc/layers/scrollbar_layer.h (right): https://codereview.chromium.org/18191020/diff/50001/cc/layers/scrollbar_layer.h#newcode37 cc/layers/scrollbar_layer.h:37: virtual void Update(ResourceUpdateQueue* queue, On 2013/07/11 23:54:44, powei wrote: ...
7 years, 5 months ago (2013-07-12 00:52:27 UTC) #18
jamesr
On 2013/07/12 00:52:27, aelias wrote: > https://codereview.chromium.org/18191020/diff/50001/cc/layers/scrollbar_layer.h > File cc/layers/scrollbar_layer.h (right): > > https://codereview.chromium.org/18191020/diff/50001/cc/layers/scrollbar_layer.h#newcode37 > ...
7 years, 5 months ago (2013-07-13 01:42:48 UTC) #19
aelias_OOO_until_Jul13
On 2013/07/13 01:42:48, jamesr wrote: > Hmm? We have to reraster scrollbar components whenever they ...
7 years, 5 months ago (2013-07-13 01:59:59 UTC) #20
powei
On 2013/07/13 01:59:59, aelias wrote: > On 2013/07/13 01:42:48, jamesr wrote: > > Hmm? We ...
7 years, 5 months ago (2013-07-22 17:34:01 UTC) #21
enne (OOO)
A bunch of nits, with some a few more real questions somewhere in the middle. ...
7 years, 5 months ago (2013-07-22 23:09:15 UTC) #22
aelias_OOO_until_Jul13
https://codereview.chromium.org/18191020/diff/96046/cc/layers/scrollbar_layer.cc File cc/layers/scrollbar_layer.cc (right): https://codereview.chromium.org/18191020/diff/96046/cc/layers/scrollbar_layer.cc#newcode213 cc/layers/scrollbar_layer.cc:213: if (track_ui_resource_id_) { nit: no {} https://codereview.chromium.org/18191020/diff/96046/cc/layers/scrollbar_layer.cc#newcode220 cc/layers/scrollbar_layer.cc:220: if ...
7 years, 5 months ago (2013-07-23 00:06:48 UTC) #23
powei
Most comments addressed. One question about the weak_ptr though, see scrollbar_layer.cc in Patch 5. New ...
7 years, 5 months ago (2013-07-24 02:28:29 UTC) #24
aelias_OOO_until_Jul13
Getting there, thanks for plugging away at this. https://chromiumcodereview.appspot.com/18191020/diff/96046/cc/layers/scrollbar_layer.cc File cc/layers/scrollbar_layer.cc (right): https://chromiumcodereview.appspot.com/18191020/diff/96046/cc/layers/scrollbar_layer.cc#newcode225 cc/layers/scrollbar_layer.cc:225: base::Bind(&ScrollbarLayer::GetThumbBitmap, ...
7 years, 5 months ago (2013-07-24 02:57:45 UTC) #25
powei
Made changes wrt to aelias' suggestions. New patch set up for review. Thanks. https://chromiumcodereview.appspot.com/18191020/diff/175003/cc/layers/scrollbar_layer.h File ...
7 years, 5 months ago (2013-07-25 20:48:45 UTC) #26
aelias_OOO_until_Jul13
https://chromiumcodereview.appspot.com/18191020/diff/242001/cc/resources/scoped_ui_resource.cc File cc/resources/scoped_ui_resource.cc (right): https://chromiumcodereview.appspot.com/18191020/diff/242001/cc/resources/scoped_ui_resource.cc#newcode27 cc/resources/scoped_ui_resource.cc:27: void ScopedUIResource::ClearResource() { This method is not ever safe ...
7 years, 5 months ago (2013-07-25 23:45:10 UTC) #27
aelias_OOO_until_Jul13
https://chromiumcodereview.appspot.com/18191020/diff/242001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://chromiumcodereview.appspot.com/18191020/diff/242001/cc/trees/layer_tree_host.cc#newcode1147 cc/trees/layer_tree_host.cc:1147: if (iter->type == UIResourceCreate && I suggest removing this ...
7 years, 5 months ago (2013-07-25 23:59:44 UTC) #28
powei
Comments addressed. New patch. Thanks. https://chromiumcodereview.appspot.com/18191020/diff/242001/cc/resources/scoped_ui_resource.cc File cc/resources/scoped_ui_resource.cc (right): https://chromiumcodereview.appspot.com/18191020/diff/242001/cc/resources/scoped_ui_resource.cc#newcode27 cc/resources/scoped_ui_resource.cc:27: void ScopedUIResource::ClearResource() { On ...
7 years, 5 months ago (2013-07-26 23:07:26 UTC) #29
aelias_OOO_until_Jul13
Getting there, starting to look pretty clean overall. https://chromiumcodereview.appspot.com/18191020/diff/242001/cc/resources/scoped_ui_resource.h File cc/resources/scoped_ui_resource.h (right): https://chromiumcodereview.appspot.com/18191020/diff/242001/cc/resources/scoped_ui_resource.h#newcode15 cc/resources/scoped_ui_resource.h:15: typedef ...
7 years, 5 months ago (2013-07-26 23:35:31 UTC) #30
aelias_OOO_until_Jul13
https://chromiumcodereview.appspot.com/18191020/diff/293001/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://chromiumcodereview.appspot.com/18191020/diff/293001/cc/trees/layer_tree_host.h#newcode231 cc/trees/layer_tree_host.h:231: void UIResourceLost(UIResourceId id); Make this private. https://chromiumcodereview.appspot.com/18191020/diff/293001/cc/trees/layer_tree_host.h#newcode323 cc/trees/layer_tree_host.h:323: int ...
7 years, 5 months ago (2013-07-26 23:57:31 UTC) #31
powei
addressed comments. Some clarification on resource lost behavior might be needed (see layer_tree_host_impl.cc). Patch up ...
7 years, 4 months ago (2013-07-30 21:46:59 UTC) #32
aelias_OOO_until_Jul13
https://chromiumcodereview.appspot.com/18191020/diff/293001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://chromiumcodereview.appspot.com/18191020/diff/293001/cc/trees/layer_tree_host_impl.cc#newcode1318 cc/trees/layer_tree_host_impl.cc:1318: // 1. If the request was a creation, then ...
7 years, 4 months ago (2013-07-30 22:28:44 UTC) #33
powei
https://chromiumcodereview.appspot.com/18191020/diff/293001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://chromiumcodereview.appspot.com/18191020/diff/293001/cc/trees/layer_tree_host_impl.cc#newcode1318 cc/trees/layer_tree_host_impl.cc:1318: // 1. If the request was a creation, then ...
7 years, 4 months ago (2013-07-30 22:37:50 UTC) #34
aelias_OOO_until_Jul13
https://chromiumcodereview.appspot.com/18191020/diff/293001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://chromiumcodereview.appspot.com/18191020/diff/293001/cc/trees/layer_tree_host_impl.cc#newcode1318 cc/trees/layer_tree_host_impl.cc:1318: // 1. If the request was a creation, then ...
7 years, 4 months ago (2013-07-30 23:04:29 UTC) #35
powei
Ready for another look. A few notable changes since the last update: - for multiple ...
7 years, 4 months ago (2013-07-31 20:38:48 UTC) #36
aelias_OOO_until_Jul13
LGTM overall. Please let enne@ take another look before landing though. https://chromiumcodereview.appspot.com/18191020/diff/363003/cc/cc_tests.gyp File cc/cc_tests.gyp (right): ...
7 years, 4 months ago (2013-07-31 21:00:29 UTC) #37
aelias_OOO_until_Jul13
Please also edit your patch description to give more detail.
7 years, 4 months ago (2013-07-31 21:03:35 UTC) #38
powei
https://chromiumcodereview.appspot.com/18191020/diff/363003/cc/cc_tests.gyp File cc/cc_tests.gyp (right): https://chromiumcodereview.appspot.com/18191020/diff/363003/cc/cc_tests.gyp#newcode9 cc/cc_tests.gyp:9: # 'animation/animation_unittest.cc', On 2013/07/31 21:00:30, aelias wrote: > Please ...
7 years, 4 months ago (2013-07-31 21:29:39 UTC) #39
aelias_OOO_until_Jul13
https://chromiumcodereview.appspot.com/18191020/diff/363003/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://chromiumcodereview.appspot.com/18191020/diff/363003/cc/trees/layer_tree_host.cc#newcode1167 cc/trees/layer_tree_host.cc:1167: UIResourceIdSet request_set; On 2013/07/31 21:29:39, powei wrote: > On ...
7 years, 4 months ago (2013-07-31 21:56:51 UTC) #40
enne (OOO)
https://chromiumcodereview.appspot.com/18191020/diff/363003/cc/layers/scrollbar_layer_impl.cc File cc/layers/scrollbar_layer_impl.cc (right): https://chromiumcodereview.appspot.com/18191020/diff/363003/cc/layers/scrollbar_layer_impl.cc#newcode110 cc/layers/scrollbar_layer_impl.cc:110: gfx::Rect track_quad_rect = content_bounds_rect; This temporary variable isn't used ...
7 years, 4 months ago (2013-07-31 22:02:39 UTC) #41
powei
https://chromiumcodereview.appspot.com/18191020/diff/363003/cc/layers/scrollbar_layer_impl.cc File cc/layers/scrollbar_layer_impl.cc (right): https://chromiumcodereview.appspot.com/18191020/diff/363003/cc/layers/scrollbar_layer_impl.cc#newcode110 cc/layers/scrollbar_layer_impl.cc:110: gfx::Rect track_quad_rect = content_bounds_rect; On 2013/07/31 22:02:40, enne wrote: ...
7 years, 4 months ago (2013-08-01 00:05:09 UTC) #42
enne (OOO)
lgtm https://chromiumcodereview.appspot.com/18191020/diff/522001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://chromiumcodereview.appspot.com/18191020/diff/522001/cc/trees/layer_tree_host_impl.cc#newcode1462 cc/trees/layer_tree_host_impl.cc:1462: DCHECK_EQ(active_tree_->ui_resource_request_queue_size(), 0u); Ah, I meant to check this ...
7 years, 4 months ago (2013-08-01 00:26:56 UTC) #43
powei
Thanks everyone! I'm going to try and land this. https://chromiumcodereview.appspot.com/18191020/diff/522001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://chromiumcodereview.appspot.com/18191020/diff/522001/cc/trees/layer_tree_host_impl.cc#newcode1462 cc/trees/layer_tree_host_impl.cc:1462: ...
7 years, 4 months ago (2013-08-01 03:27:02 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/powei@chromium.org/18191020/558001
7 years, 4 months ago (2013-08-01 03:28:26 UTC) #45
commit-bot: I haz the power
7 years, 4 months ago (2013-08-01 06:29:04 UTC) #46
Message was sent while issue was closed.
Change committed as 214975

Powered by Google App Engine
This is Rietveld 408576698