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

Issue 2276633003: Move scaling of ui resources for scrollbars to the time of upload (Closed)

Created:
4 years, 4 months ago by danakj
Modified:
4 years, 3 months ago
Reviewers:
enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@scrollbarpixeltests
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move scaling of ui resources for scrollbars to the time of upload Instead of trying to figure out what the max texture size is on the main thread, and scale raster to meet that, just raster freely. Then when uploading the UIResource to a texture, we can easily tell what the max texture size is, and if the UIResource is too large, scale it down to fit in a texture. R=enne BUG=606056 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/941e52edd1522f7c3935aa4f4d763c43578b4944 Committed: https://crrev.com/cbd37e2ef2b8fa6292f5ea8cfb41df409e63cde5 Cr-Original-Commit-Position: refs/heads/master@{#414202} Cr-Commit-Position: refs/heads/master@{#414546}

Patch Set 1 #

Patch Set 2 : uploadscale: rebase #

Patch Set 3 : uploadscale: rebaseline #

Patch Set 4 : uploadscale: rebase-and-cctests #

Total comments: 5

Patch Set 5 : uploadscale: comments #

Total comments: 1

Patch Set 6 : uploadscale: fix #

Patch Set 7 : uploadscale: rebaselineforwaterfall-plus-fuzzy #

Patch Set 8 : uploadscale: fixmath #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -101 lines) Patch
M cc/layers/painted_scrollbar_layer.h View 1 chunk +0 lines, -3 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.cc View 2 chunks +1 line, -22 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 4 5 chunks +8 lines, -67 lines 0 comments Download
M cc/resources/ui_resource_client.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M cc/test/data/spiral_64_scale.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
M cc/test/fake_ui_resource_layer_tree_host_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +54 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_scrollbars.cc View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 60 (37 generated)
danakj
The pixel output ends up looking a lot better, which I can't really explain. I ...
4 years, 4 months ago (2016-08-24 02:04:20 UTC) #2
danakj
On 2016/08/24 02:04:20, danakj wrote: > The pixel output ends up looking a lot better, ...
4 years, 4 months ago (2016-08-24 02:06:26 UTC) #3
danakj
On 2016/08/24 02:06:26, danakj wrote: > On 2016/08/24 02:04:20, danakj wrote: > > The pixel ...
4 years, 4 months ago (2016-08-24 02:19:21 UTC) #8
enne (OOO)
https://codereview.chromium.org/2276633003/diff/60001/cc/layers/scrollbar_layer_unittest.cc File cc/layers/scrollbar_layer_unittest.cc (right): https://codereview.chromium.org/2276633003/diff/60001/cc/layers/scrollbar_layer_unittest.cc#newcode1015 cc/layers/scrollbar_layer_unittest.cc:1015: TestResourceUpload(max_texture_size / 9.9f); 9.9 O_o? https://codereview.chromium.org/2276633003/diff/60001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): ...
4 years, 4 months ago (2016-08-24 06:03:50 UTC) #15
danakj
PTAL https://codereview.chromium.org/2276633003/diff/60001/cc/layers/scrollbar_layer_unittest.cc File cc/layers/scrollbar_layer_unittest.cc (right): https://codereview.chromium.org/2276633003/diff/60001/cc/layers/scrollbar_layer_unittest.cc#newcode1015 cc/layers/scrollbar_layer_unittest.cc:1015: TestResourceUpload(max_texture_size / 9.9f); On 2016/08/24 06:03:49, enne wrote: ...
4 years, 4 months ago (2016-08-24 20:41:49 UTC) #17
enne (OOO)
lgtm https://codereview.chromium.org/2276633003/diff/80001/cc/resources/ui_resource_client.h File cc/resources/ui_resource_client.h (right): https://codereview.chromium.org/2276633003/diff/80001/cc/resources/ui_resource_client.h#newcode27 cc/resources/ui_resource_client.h:27: // supported by the GPU. For resources that ...
4 years, 4 months ago (2016-08-24 20:51:09 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/2276633003/100001
4 years, 4 months ago (2016-08-24 20:53:22 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/245273) linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 4 months ago (2016-08-24 22:55:56 UTC) #24
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/2276633003/100001
4 years, 4 months ago (2016-08-24 23:27:40 UTC) #26
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/2276633003/100001
4 years, 4 months ago (2016-08-24 23:44:32 UTC) #30
danakj
interactive_ui_tests keeps failing on trybots which appears to be https://bugs.chromium.org/p/chromium/issues/detail?id=639350. So NOTRY=true :(
4 years, 4 months ago (2016-08-24 23:44:40 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-24 23:50:41 UTC) #33
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/941e52edd1522f7c3935aa4f4d763c43578b4944 Cr-Commit-Position: refs/heads/master@{#414202}
4 years, 4 months ago (2016-08-24 23:52:56 UTC) #35
johnme
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/2278083002/ by johnme@chromium.org. ...
4 years, 3 months ago (2016-08-25 11:07:24 UTC) #36
danakj
So.. on the trybots the inner antialiased edge is (148,255,148) which is the halfwhite halfgreen ...
4 years, 3 months ago (2016-08-25 18:17:45 UTC) #40
danakj
I've used the waterfall version as the expected png now, and added fuzziness to allow ...
4 years, 3 months ago (2016-08-25 18:36:25 UTC) #45
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/2276633003/120001
4 years, 3 months ago (2016-08-25 18:37:09 UTC) #46
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/2276633003/120001
4 years, 3 months ago (2016-08-25 18:39:53 UTC) #50
danakj
I've updated the math to use ceiledsize(size * (max_texture_size-1)/width) instead of flooredsize(size * max_texture_size/width), so ...
4 years, 3 months ago (2016-08-25 19:47:28 UTC) #51
danakj
On 2016/08/25 19:47:28, danakj wrote: > I've updated the math to use ceiledsize(size * (max_texture_size-1)/width) ...
4 years, 3 months ago (2016-08-25 19:49:08 UTC) #53
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/2276633003/140001
4 years, 3 months ago (2016-08-25 19:50:51 UTC) #56
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 3 months ago (2016-08-25 21:49:41 UTC) #58
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 21:51:16 UTC) #60
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/cbd37e2ef2b8fa6292f5ea8cfb41df409e63cde5
Cr-Commit-Position: refs/heads/master@{#414546}

Powered by Google App Engine
This is Rietveld 408576698