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

Issue 21917004: Change ScrollbarLayer to use UI resource (Closed)

Created:
7 years, 4 months ago by powei
Modified:
7 years, 4 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, enne (OOO)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Change the ScrollbarLayer to use UI Resource as oppose to prioritized resource manager. First attemped as a part of the UI resource CL: https://chromiumcodereview.appspot.com/18191020 Reverted due to failed tests: https://chromiumcodereview.appspot.com/21555004 This patch clears the SkCanvas (bitmap) for the thumb/track before painting, and scales the canvas with respect to the content_scale (closer to the original scrollbar implementation that used cc/resources/content_layer_updater). Also change the pixel swizzling format to best_texture_format(). BUG=173947 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217446

Patch Set 1 : Changed ScrollbarLayer to clear SkCanvas and reflect scale changes to the layer #

Total comments: 6

Patch Set 2 : Scrollbar Layer unittest with checks for empty track or thumb #

Patch Set 3 : Fixed failed ScaledScrollbar test #

Patch Set 4 : Add pxiel swizzling to UIResourceBitmap #

Patch Set 5 : Finalizing pixel format issues #

Patch Set 6 : Clean up #

Patch Set 7 : Rebase and merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -300 lines) Patch
M cc/layers/scrollbar_layer.h View 1 4 chunks +15 lines, -23 lines 0 comments Download
M cc/layers/scrollbar_layer.cc View 1 2 4 5 6 chunks +72 lines, -177 lines 0 comments Download
M cc/layers/scrollbar_layer_impl.h View 4 chunks +7 lines, -8 lines 0 comments Download
M cc/layers/scrollbar_layer_impl.cc View 5 chunks +16 lines, -22 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 4 5 6 9 chunks +80 lines, -42 lines 0 comments Download
M cc/test/fake_scrollbar_layer.h View 1 3 chunks +8 lines, -8 lines 0 comments Download
M cc/test/fake_scrollbar_layer.cc View 2 chunks +2 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 3 chunks +64 lines, -11 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
aelias_OOO_until_Jul13
https://codereview.chromium.org/21917004/diff/11001/cc/layers/scrollbar_layer_unittest.cc File cc/layers/scrollbar_layer_unittest.cc (left): https://codereview.chromium.org/21917004/diff/11001/cc/layers/scrollbar_layer_unittest.cc#oldcode480 cc/layers/scrollbar_layer_unittest.cc:480: class ScaledScrollbarLayerTestResourceCreation : public testing::Test { OK, if you ...
7 years, 4 months ago (2013-08-03 01:18:19 UTC) #1
powei
https://codereview.chromium.org/21917004/diff/11001/cc/layers/scrollbar_layer_unittest.cc File cc/layers/scrollbar_layer_unittest.cc (left): https://codereview.chromium.org/21917004/diff/11001/cc/layers/scrollbar_layer_unittest.cc#oldcode480 cc/layers/scrollbar_layer_unittest.cc:480: class ScaledScrollbarLayerTestResourceCreation : public testing::Test { On 2013/08/03 01:18:19, ...
7 years, 4 months ago (2013-08-03 01:23:53 UTC) #2
aelias_OOO_until_Jul13
The new scaling logic looks fine, I guess you based it off ContentLayerUpdater::PaintContents(). https://codereview.chromium.org/21917004/diff/11001/cc/layers/scrollbar_layer.cc File ...
7 years, 4 months ago (2013-08-03 01:34:23 UTC) #3
powei
Update scrollbar_layer_unittest and added a check for empty rect in scrollbar layer (without it mac ...
7 years, 4 months ago (2013-08-05 23:49:29 UTC) #4
aelias_OOO_until_Jul13
Looks like your new ScaledResourceUpload test is failing on all the _rel bots.
7 years, 4 months ago (2013-08-06 03:28:05 UTC) #5
powei
On 2013/08/06 03:28:05, aelias wrote: > Looks like your new ScaledResourceUpload test is failing on ...
7 years, 4 months ago (2013-08-06 18:26:49 UTC) #6
powei
On 2013/08/06 18:26:49, powei wrote: > On 2013/08/06 03:28:05, aelias wrote: > > Looks like ...
7 years, 4 months ago (2013-08-08 17:18:46 UTC) #7
aelias_OOO_until_Jul13
I don't think we should let UIResourceBitmap support more than one swizzling format. We should ...
7 years, 4 months ago (2013-08-08 19:04:56 UTC) #8
powei
On 2013/08/08 19:04:56, aelias wrote: > I don't think we should let UIResourceBitmap support more ...
7 years, 4 months ago (2013-08-10 01:45:46 UTC) #9
aelias_OOO_until_Jul13
On 2013/08/10 01:45:46, powei wrote: > Curiously, the old scrollbar was using TextureDrawQuad, which does ...
7 years, 4 months ago (2013-08-10 02:59:51 UTC) #10
aelias_OOO_until_Jul13
lgtm, but please wait until after M30 branch point to land. On 2013/08/10 02:59:51, aelias ...
7 years, 4 months ago (2013-08-10 03:47:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/powei@chromium.org/21917004/127001
7 years, 4 months ago (2013-08-13 18:31:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/powei@chromium.org/21917004/127001
7 years, 4 months ago (2013-08-13 19:42:53 UTC) #13
commit-bot: I haz the power
Failed to apply patch for cc/layers/scrollbar_layer_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-08-13 19:43:02 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/powei@chromium.org/21917004/154001
7 years, 4 months ago (2013-08-13 22:19:06 UTC) #15
commit-bot: I haz the power
7 years, 4 months ago (2013-08-14 02:19:02 UTC) #16
Message was sent while issue was closed.
Change committed as 217446

Powered by Google App Engine
This is Rietveld 408576698