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

Issue 2673813002: Changes the bounds being sent for occlusion from physical pixels to DIP (Closed)

Created:
3 years, 10 months ago by malaykeshav
Modified:
3 years, 10 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, oshima
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Changes the bounds being sent for occlusion from physical pixels to DIP Occlusion::GetUnoccludedContentRect() applies a draw transform to the bounds being sent. This draw transform already has the scaling applied to it which causes the physical pixel bounds to be scaled again leading to an incorrect visible rect result. Also adds unittest to check for this scenario in the future. BUG=660744 COMPONENT=CC, Layer, Surface Layer Impl CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2673813002 Cr-Commit-Position: refs/heads/master@{#449755} Committed: https://chromium.googlesource.com/chromium/src/+/9c7c49cb95b000cdaef78de90eb6a3cd46c663f9

Patch Set 1 #

Patch Set 2 : Test breaks no more! #

Patch Set 3 : Changes the bounds being sent for occlusion from physical pixels to DIP #

Patch Set 4 : Intersect visible_quad_rect with surface size in pixels #

Patch Set 5 : Adds unittests to check for this case #

Total comments: 4

Patch Set 6 : Adds another occlusion test for occlusion from outside #

Patch Set 7 : Use gfx::ScaleToEnclosingRect instead of gfx::ScaleToEnclosedRect #

Total comments: 10

Patch Set 8 : Resolving comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -9 lines) Patch
M cc/layers/surface_layer_impl.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -8 lines 0 comments Download
M cc/layers/surface_layer_impl_unittest.cc View 1 2 3 4 5 6 7 2 chunks +72 lines, -0 lines 0 comments Download
M cc/test/layer_test_common.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 3 comments Download

Messages

Total messages: 62 (49 generated)
malaykeshav
PTAL
3 years, 10 months ago (2017-02-08 20:50:25 UTC) #29
weiliangc
https://codereview.chromium.org/2673813002/diff/140001/cc/layers/surface_layer_impl_unittest.cc File cc/layers/surface_layer_impl_unittest.cc (right): https://codereview.chromium.org/2673813002/diff/140001/cc/layers/surface_layer_impl_unittest.cc#newcode23 cc/layers/surface_layer_impl_unittest.cc:23: gfx::Size scaled_layer_size( nit: Rename to scaled_surface_size, since scaled_layer_size sounds ...
3 years, 10 months ago (2017-02-09 18:25:32 UTC) #32
malaykeshav
Updated unit test and fixed a small bug in layer_test_common code. PTAL https://codereview.chromium.org/2673813002/diff/140001/cc/layers/surface_layer_impl_unittest.cc File cc/layers/surface_layer_impl_unittest.cc ...
3 years, 10 months ago (2017-02-09 21:00:41 UTC) #36
weiliangc
LGTM
3 years, 10 months ago (2017-02-09 22:20:46 UTC) #39
malaykeshav
PTAL
3 years, 10 months ago (2017-02-09 23:41:14 UTC) #44
malaykeshav
PTAL
3 years, 10 months ago (2017-02-09 23:41:14 UTC) #45
danakj
https://codereview.chromium.org/2673813002/diff/200001/cc/layers/surface_layer_impl.cc File cc/layers/surface_layer_impl.cc (right): https://codereview.chromium.org/2673813002/diff/200001/cc/layers/surface_layer_impl.cc#newcode62 cc/layers/surface_layer_impl.cc:62: float scale_x, scale_y; Can you give this a name ...
3 years, 10 months ago (2017-02-10 16:32:23 UTC) #48
malaykeshav
Resolved comments. PTAL https://codereview.chromium.org/2673813002/diff/200001/cc/layers/surface_layer_impl.cc File cc/layers/surface_layer_impl.cc (right): https://codereview.chromium.org/2673813002/diff/200001/cc/layers/surface_layer_impl.cc#newcode62 cc/layers/surface_layer_impl.cc:62: float scale_x, scale_y; On 2017/02/10 at ...
3 years, 10 months ago (2017-02-10 20:24:58 UTC) #50
danakj
https://codereview.chromium.org/2673813002/diff/220001/cc/test/layer_test_common.cc File cc/test/layer_test_common.cc (right): https://codereview.chromium.org/2673813002/diff/220001/cc/test/layer_test_common.cc#newcode51 cc/test/layer_test_common.cc:51: EXPECT_TRUE(iter->rect.Contains(iter->visible_rect)); In order to exactly cover, would the rects ...
3 years, 10 months ago (2017-02-10 20:35:45 UTC) #52
malaykeshav
https://codereview.chromium.org/2673813002/diff/220001/cc/test/layer_test_common.cc File cc/test/layer_test_common.cc (right): https://codereview.chromium.org/2673813002/diff/220001/cc/test/layer_test_common.cc#newcode51 cc/test/layer_test_common.cc:51: EXPECT_TRUE(iter->rect.Contains(iter->visible_rect)); On 2017/02/10 at 20:35:44, danakj wrote: > In ...
3 years, 10 months ago (2017-02-10 21:02:50 UTC) #53
danakj
LGTM https://codereview.chromium.org/2673813002/diff/220001/cc/test/layer_test_common.cc File cc/test/layer_test_common.cc (right): https://codereview.chromium.org/2673813002/diff/220001/cc/test/layer_test_common.cc#newcode51 cc/test/layer_test_common.cc:51: EXPECT_TRUE(iter->rect.Contains(iter->visible_rect)); On 2017/02/10 21:02:50, malaykeshav wrote: > On ...
3 years, 10 months ago (2017-02-10 22:06:45 UTC) #56
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/2673813002/220001
3 years, 10 months ago (2017-02-10 22:08:00 UTC) #59
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 22:14:59 UTC) #62
Message was sent while issue was closed.
Committed patchset #8 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/9c7c49cb95b000cdaef78de90eb6...

Powered by Google App Engine
This is Rietveld 408576698