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

Issue 394193003: Implement HiDPI and pinch-zoom scaling of filter params (Closed)

Created:
6 years, 5 months ago by garykac
Modified:
6 years, 4 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Project:
chromium
Visibility:
Public.

Description

Implement HiDPI and pinch-zoom scaling of filter params This change implements HiDPI scaling of filter params in CC. It also fixes content scaling of filter params (e.g., with -webkit-transform: scale(X)) as well as pinch-zoom scaling. This code is mostly from http://crrev.com/191123002 "Implement hidpi and pinch-zoom scaling of filter params in cc" and replaces http://crrev.com/317663005 "Scale the ALPHA_THRESHOLD filter's region based on the device scale factor" because this fixes all filters rather than just the AlphaThresholdFilter. BUG=376532, 281516, 281518, 349493 R=brettw@chromium.org, danakj@chromium.org, enne@chromium.org, jschuh@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288436

Patch Set 1 #

Patch Set 2 : Add unittests #

Total comments: 2

Patch Set 3 : Change Transform to Vector2dF; Remove PreconcatTransform #

Patch Set 4 : Merge & update test expectation #

Patch Set 5 : Disable pixel test for Android #

Total comments: 8

Patch Set 6 : Review comments #

Total comments: 18

Patch Set 7 : Update tests from comments #

Total comments: 2

Patch Set 8 : Update test names (Gl -> GL), remove dup tests #

Patch Set 9 : Brand new scaled filter test #

Total comments: 6

Patch Set 10 : Remove extra headers; unneeded code in tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -24 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M build/config/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M cc/base/math_util.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/base/math_util.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M cc/layers/delegated_renderer_layer_impl_unittest.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M cc/layers/render_surface_impl.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 4 chunks +4 lines, -3 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 2 3 7 chunks +7 lines, -0 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M cc/quads/draw_quad_unittest.cc View 1 2 3 4 5 8 chunks +15 lines, -11 lines 0 comments Download
M cc/quads/render_pass_draw_quad.h View 1 2 3 4 5 3 chunks +8 lines, -0 lines 0 comments Download
M cc/quads/render_pass_draw_quad.cc View 1 2 3 5 chunks +21 lines, -3 lines 0 comments Download
M cc/quads/render_pass_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/surfaces/surface_aggregator_test_helpers.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/render_pass_test_common.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M cc/test/render_pass_test_utils.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_filters.cc View 1 2 3 4 5 6 7 8 9 1 chunk +74 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_delegated.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/common/cc_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/common/cc_messages_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
garykac
I spent some looking into making a useful RenderSurfaceLayerImplTest to verify that AppendQuads was doing ...
6 years, 5 months ago (2014-07-17 00:52:53 UTC) #1
Stephen White
On 2014/07/17 00:52:53, garykac wrote: > I spent some looking into making a useful RenderSurfaceLayerImplTest ...
6 years, 5 months ago (2014-07-17 12:57:02 UTC) #2
danakj
On 2014/07/17 12:57:02, Stephen White wrote: > On 2014/07/17 00:52:53, garykac wrote: > > I ...
6 years, 5 months ago (2014-07-17 15:04:26 UTC) #3
Stephen White
On 2014/07/17 15:04:26, danakj wrote: > On 2014/07/17 12:57:02, Stephen White wrote: > > On ...
6 years, 5 months ago (2014-07-17 15:19:04 UTC) #4
garykac
On 2014/07/17 15:19:04, Stephen White wrote: > On 2014/07/17 15:04:26, danakj wrote: > > On ...
6 years, 5 months ago (2014-07-17 17:01:54 UTC) #5
danakj
On Thu, Jul 17, 2014 at 1:01 PM, <garykac@chromium.org> wrote: > On 2014/07/17 15:19:04, Stephen ...
6 years, 5 months ago (2014-07-17 17:03:59 UTC) #6
garykac
+enne since dana is on vacation. Basic unittests have been added.
6 years, 5 months ago (2014-07-25 17:58:17 UTC) #7
enne (OOO)
https://codereview.chromium.org/394193003/diff/20001/cc/layers/render_surface_impl.cc File cc/layers/render_surface_impl.cc (right): https://codereview.chromium.org/394193003/diff/20001/cc/layers/render_surface_impl.cc#newcode232 cc/layers/render_surface_impl.cc:232: owning_layer_to_target_scale.PreconcatTransform( Do you really need the full transform multiplication ...
6 years, 5 months ago (2014-07-25 22:45:51 UTC) #8
garykac
https://codereview.chromium.org/394193003/diff/20001/cc/layers/render_surface_impl.cc File cc/layers/render_surface_impl.cc (right): https://codereview.chromium.org/394193003/diff/20001/cc/layers/render_surface_impl.cc#newcode232 cc/layers/render_surface_impl.cc:232: owning_layer_to_target_scale.PreconcatTransform( On 2014/07/25 22:45:51, enne wrote: > Do you ...
6 years, 4 months ago (2014-07-29 17:10:01 UTC) #9
enne (OOO)
lgtm, thanks!
6 years, 4 months ago (2014-07-29 17:20:58 UTC) #10
garykac
+jln for content/common/cc_messages.h
6 years, 4 months ago (2014-07-29 21:47:50 UTC) #11
jln (very slow on Chromium)
On 2014/07/29 21:47:50, garykac wrote: > +jln for content/common/cc_messages.h To speed the review, could you ...
6 years, 4 months ago (2014-07-29 21:57:19 UTC) #12
Stephen White
Unfortunately, css3/filters/effect-reference-subregion-hidpi-hw.html (on linux_blink_rel) is likely an actual failure. Fortunately, this is a fairly niche ...
6 years, 4 months ago (2014-07-29 22:01:49 UTC) #13
garykac
+cevans for cc_messages since jln is OOO On 2014/07/29 21:57:19, jln (OOO til Aug 12) ...
6 years, 4 months ago (2014-08-04 23:08:27 UTC) #14
garykac
On 2014/08/04 23:08:27, garykac wrote: > On 2014/07/29 22:01:49, Stephen White wrote: > > Unfortunately, ...
6 years, 4 months ago (2014-08-04 23:36:02 UTC) #15
danakj
On 2014/07/29 21:57:19, jln (OOO til Aug 12) wrote: > On 2014/07/29 21:47:50, garykac wrote: ...
6 years, 4 months ago (2014-08-05 13:38:48 UTC) #16
Stephen White
On 2014/08/04 23:36:02, garykac wrote: > On 2014/08/04 23:08:27, garykac wrote: > > On 2014/07/29 ...
6 years, 4 months ago (2014-08-05 13:51:30 UTC) #17
danakj
LGTM w/ a few comments. Thanks for this! https://codereview.chromium.org/394193003/diff/80001/cc/layers/render_surface_impl_unittest.cc File cc/layers/render_surface_impl_unittest.cc (right): https://codereview.chromium.org/394193003/diff/80001/cc/layers/render_surface_impl_unittest.cc#newcode72 cc/layers/render_surface_impl_unittest.cc:72: class ...
6 years, 4 months ago (2014-08-05 14:05:44 UTC) #18
garykac
https://codereview.chromium.org/394193003/diff/80001/cc/layers/render_surface_impl_unittest.cc File cc/layers/render_surface_impl_unittest.cc (right): https://codereview.chromium.org/394193003/diff/80001/cc/layers/render_surface_impl_unittest.cc#newcode72 cc/layers/render_surface_impl_unittest.cc:72: class RenderSurfaceImplHiDpiTest : public LayerTreePixelTest { On 2014/08/05 14:05:43, ...
6 years, 4 months ago (2014-08-05 21:17:50 UTC) #19
garykac
+brettw for build/config/BUILD.gn There's also a reference to this flag in native_client/build/config/BUILD.gn, but it's in ...
6 years, 4 months ago (2014-08-05 21:20:22 UTC) #20
danakj
Thanks, a couple more things about the tests https://codereview.chromium.org/394193003/diff/100001/cc/trees/layer_tree_host_pixeltest_filters.cc File cc/trees/layer_tree_host_pixeltest_filters.cc (right): https://codereview.chromium.org/394193003/diff/100001/cc/trees/layer_tree_host_pixeltest_filters.cc#newcode164 cc/trees/layer_tree_host_pixeltest_filters.cc:164: class ...
6 years, 4 months ago (2014-08-05 21:47:25 UTC) #21
brettw
build/config/BUILD.gn LGTM
6 years, 4 months ago (2014-08-06 17:41:11 UTC) #22
garykac
cevans@ could you please take a look at cc_messages? https://codereview.chromium.org/394193003/diff/100001/cc/trees/layer_tree_host_pixeltest_filters.cc File cc/trees/layer_tree_host_pixeltest_filters.cc (right): https://codereview.chromium.org/394193003/diff/100001/cc/trees/layer_tree_host_pixeltest_filters.cc#newcode164 cc/trees/layer_tree_host_pixeltest_filters.cc:164: ...
6 years, 4 months ago (2014-08-07 02:04:15 UTC) #23
danakj
LGTM https://codereview.chromium.org/394193003/diff/100001/cc/trees/layer_tree_host_pixeltest_filters.cc File cc/trees/layer_tree_host_pixeltest_filters.cc (right): https://codereview.chromium.org/394193003/diff/100001/cc/trees/layer_tree_host_pixeltest_filters.cc#newcode212 cc/trees/layer_tree_host_pixeltest_filters.cc:212: void RunDpiTest(int content_size, float device_scale_factor) { On 2014/08/07 ...
6 years, 4 months ago (2014-08-07 13:15:30 UTC) #24
danakj
https://codereview.chromium.org/394193003/diff/100001/cc/trees/layer_tree_host_pixeltest_filters.cc File cc/trees/layer_tree_host_pixeltest_filters.cc (right): https://codereview.chromium.org/394193003/diff/100001/cc/trees/layer_tree_host_pixeltest_filters.cc#newcode234 cc/trees/layer_tree_host_pixeltest_filters.cc:234: this->impl_side_painting_ = false; On 2014/08/07 13:15:29, danakj wrote: > ...
6 years, 4 months ago (2014-08-07 14:03:18 UTC) #25
garykac
https://codereview.chromium.org/394193003/diff/100001/cc/trees/layer_tree_host_pixeltest_filters.cc File cc/trees/layer_tree_host_pixeltest_filters.cc (right): https://codereview.chromium.org/394193003/diff/100001/cc/trees/layer_tree_host_pixeltest_filters.cc#newcode234 cc/trees/layer_tree_host_pixeltest_filters.cc:234: this->impl_side_painting_ = false; On 2014/08/07 14:03:18, danakj wrote: > ...
6 years, 4 months ago (2014-08-07 19:06:09 UTC) #26
danakj
https://codereview.chromium.org/394193003/diff/100001/cc/trees/layer_tree_host_pixeltest_filters.cc File cc/trees/layer_tree_host_pixeltest_filters.cc (right): https://codereview.chromium.org/394193003/diff/100001/cc/trees/layer_tree_host_pixeltest_filters.cc#newcode190 cc/trees/layer_tree_host_pixeltest_filters.cc:190: RenderSurfaceImpl* render_surface = layer_impl->render_surface(); I think I managed to ...
6 years, 4 months ago (2014-08-07 19:37:00 UTC) #27
garykac
On 2014/08/07 19:37:00, danakj wrote: > What I was thinking was that you had a ...
6 years, 4 months ago (2014-08-07 21:19:57 UTC) #28
garykac
+jschuh for cc_messages.h
6 years, 4 months ago (2014-08-07 21:36:21 UTC) #29
jschuh
ipc security lgtm (notes: float value that doesn't appear security impacting)
6 years, 4 months ago (2014-08-07 21:48:50 UTC) #30
danakj
Cool this is great thank you very much. One question: https://codereview.chromium.org/394193003/diff/160001/cc/trees/layer_tree_host_pixeltest_filters.cc File cc/trees/layer_tree_host_pixeltest_filters.cc (right): https://codereview.chromium.org/394193003/diff/160001/cc/trees/layer_tree_host_pixeltest_filters.cc#newcode7 ...
6 years, 4 months ago (2014-08-07 21:59:19 UTC) #31
garykac
https://codereview.chromium.org/394193003/diff/160001/cc/trees/layer_tree_host_pixeltest_filters.cc File cc/trees/layer_tree_host_pixeltest_filters.cc (right): https://codereview.chromium.org/394193003/diff/160001/cc/trees/layer_tree_host_pixeltest_filters.cc#newcode7 cc/trees/layer_tree_host_pixeltest_filters.cc:7: #include "cc/layers/content_layer.h" On 2014/08/07 21:59:18, danakj wrote: > Some ...
6 years, 4 months ago (2014-08-07 22:51:52 UTC) #32
garykac
The CQ bit was checked by garykac@chromium.org
6 years, 4 months ago (2014-08-07 22:52:06 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/garykac@chromium.org/394193003/180001
6 years, 4 months ago (2014-08-07 23:00:51 UTC) #34
danakj
https://codereview.chromium.org/394193003/diff/160001/cc/trees/layer_tree_host_pixeltest_filters.cc File cc/trees/layer_tree_host_pixeltest_filters.cc (right): https://codereview.chromium.org/394193003/diff/160001/cc/trees/layer_tree_host_pixeltest_filters.cc#newcode206 cc/trees/layer_tree_host_pixeltest_filters.cc:206: background->SetMasksToBounds(true); On 2014/08/07 22:51:52, garykac wrote: > On 2014/08/07 ...
6 years, 4 months ago (2014-08-07 23:12:17 UTC) #35
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-08 05:13:05 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-08 06:46:40 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel/builds/4538)
6 years, 4 months ago (2014-08-08 06:46:41 UTC) #38
Stephen White
The CQ bit was checked by senorblanco@chromium.org
6 years, 4 months ago (2014-08-08 13:18:32 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/garykac@chromium.org/394193003/180001
6 years, 4 months ago (2014-08-08 13:19:10 UTC) #40
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-08 17:04:24 UTC) #41
garykac
6 years, 4 months ago (2014-08-08 21:25:48 UTC) #42
Message was sent while issue was closed.
Committed patchset #10 manually as 288436 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698