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

Issue 505913003: cc: Remove and Create the correct tiles when resizing live tiles rect (Closed)

Created:
6 years, 4 months ago by danakj
Modified:
6 years, 3 months ago
Reviewers:
vmpstr, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, piman, reveman
Base URL:
http://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Committed: https://crrev.com/e3b7da9e87ee035c2c4529ccbfe541a7ffebd077 Cr-Commit-Position: refs/heads/master@{#292417}

Patch Set 1 #

Patch Set 2 : livetiles: . #

Total comments: 5

Patch Set 3 : livetiles: removeparamfromdifference #

Total comments: 3

Patch Set 4 : livetiles: . #

Total comments: 2

Patch Set 5 : livetiles: iteratorstoo #

Patch Set 6 : livetiles: fixallthethings #

Patch Set 7 : livetiles: commenttextfix #

Total comments: 1

Patch Set 8 : livetiles: doubledcheck #

Patch Set 9 : livetiles: i_accidentally_the_unit_test #

Patch Set 10 : livetiles: betterdchecks #

Total comments: 10

Patch Set 11 : livetiles: rebase #

Patch Set 12 : livetiles: reviewed #

Total comments: 2

Patch Set 13 : livetiles: comment #

Total comments: 1

Patch Set 14 : livetiles: pushprops #

Patch Set 15 : livetiles: rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+387 lines, -125 lines) Patch
M cc/base/tiling_data.h View 1 2 3 4 5 2 chunks +6 lines, -8 lines 0 comments Download
M cc/base/tiling_data.cc View 1 2 3 4 5 8 chunks +23 lines, -36 lines 0 comments Download
M cc/base/tiling_data_unittest.cc View 1 2 3 4 5 5 chunks +63 lines, -65 lines 0 comments Download
M cc/resources/picture_layer_tiling.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/picture_layer_tiling.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +93 lines, -9 lines 0 comments Download
M cc/resources/picture_layer_tiling_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +201 lines, -7 lines 0 comments Download

Messages

Total messages: 47 (0 generated)
danakj
6 years, 4 months ago (2014-08-26 00:46:33 UTC) #1
danakj
Oh I'll have to improve this, there's some issues still.
6 years, 4 months ago (2014-08-26 00:53:53 UTC) #2
danakj
I found that using a DifferenceIterator with a bool to not include borders made the ...
6 years, 3 months ago (2014-08-26 02:14:04 UTC) #3
danakj
PTAL added some more tests for PictureLayerTiling, and a bunch of tests for DifferenceIterator
6 years, 3 months ago (2014-08-26 02:14:33 UTC) #4
enne (OOO)
Do we ever need include_borders = true?
6 years, 3 months ago (2014-08-26 18:43:24 UTC) #5
danakj
On 2014/08/26 18:43:24, enne wrote: > Do we ever need include_borders = true? Yes, I ...
6 years, 3 months ago (2014-08-26 18:49:40 UTC) #6
vmpstr
Can you please include the test from https://codereview.chromium.org/507463002 with this patch as well?
6 years, 3 months ago (2014-08-26 18:55:42 UTC) #7
enne (OOO)
https://codereview.chromium.org/505913003/diff/20001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/505913003/diff/20001/cc/resources/picture_layer_tiling.cc#newcode508 cc/resources/picture_layer_tiling.cc:508: bool include_borders = true; I guess really it's a ...
6 years, 3 months ago (2014-08-26 18:56:45 UTC) #8
enne (OOO)
(And yes, I was the one who added the original code that included borders and ...
6 years, 3 months ago (2014-08-26 18:57:14 UTC) #9
danakj
https://codereview.chromium.org/505913003/diff/20001/cc/resources/picture_layer_tiling_unittest.cc File cc/resources/picture_layer_tiling_unittest.cc (right): https://codereview.chromium.org/505913003/diff/20001/cc/resources/picture_layer_tiling_unittest.cc#newcode244 cc/resources/picture_layer_tiling_unittest.cc:244: SetLiveRectAndVerifyTiles(gfx::Rect(right + 1, bottom + 1)); This is the ...
6 years, 3 months ago (2014-08-26 19:00:11 UTC) #10
vmpstr
https://codereview.chromium.org/505913003/diff/20001/cc/resources/picture_layer_tiling_unittest.cc File cc/resources/picture_layer_tiling_unittest.cc (right): https://codereview.chromium.org/505913003/diff/20001/cc/resources/picture_layer_tiling_unittest.cc#newcode244 cc/resources/picture_layer_tiling_unittest.cc:244: SetLiveRectAndVerifyTiles(gfx::Rect(right + 1, bottom + 1)); On 2014/08/26 19:00:11, ...
6 years, 3 months ago (2014-08-26 19:02:15 UTC) #11
danakj
https://codereview.chromium.org/505913003/diff/20001/cc/resources/picture_layer_tiling_unittest.cc File cc/resources/picture_layer_tiling_unittest.cc (right): https://codereview.chromium.org/505913003/diff/20001/cc/resources/picture_layer_tiling_unittest.cc#newcode244 cc/resources/picture_layer_tiling_unittest.cc:244: SetLiveRectAndVerifyTiles(gfx::Rect(right + 1, bottom + 1)); On 2014/08/26 19:02:15, ...
6 years, 3 months ago (2014-08-26 19:28:34 UTC) #12
danakj
https://codereview.chromium.org/505913003/diff/20001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/505913003/diff/20001/cc/resources/picture_layer_tiling.cc#newcode508 cc/resources/picture_layer_tiling.cc:508: bool include_borders = true; On 2014/08/26 18:56:45, enne wrote: ...
6 years, 3 months ago (2014-08-26 19:29:35 UTC) #13
danakj
PTAL
6 years, 3 months ago (2014-08-26 20:13:59 UTC) #14
danakj
https://codereview.chromium.org/505913003/diff/40001/cc/resources/picture_layer_tiling_unittest.cc File cc/resources/picture_layer_tiling_unittest.cc (right): https://codereview.chromium.org/505913003/diff/40001/cc/resources/picture_layer_tiling_unittest.cc#newcode612 cc/resources/picture_layer_tiling_unittest.cc:612: int borders = tiling->TilingDataForTesting().border_texels(); This test is the only ...
6 years, 3 months ago (2014-08-26 20:15:18 UTC) #15
enne (OOO)
https://codereview.chromium.org/505913003/diff/40001/cc/resources/picture_layer_tiling_unittest.cc File cc/resources/picture_layer_tiling_unittest.cc (right): https://codereview.chromium.org/505913003/diff/40001/cc/resources/picture_layer_tiling_unittest.cc#newcode614 cc/resources/picture_layer_tiling_unittest.cc:614: tile_content_rect_inside_borders.Inset(borders, borders); This is not correct for edge tiles. ...
6 years, 3 months ago (2014-08-26 20:20:27 UTC) #16
danakj
Fixed (did not effect the test) PTAL https://codereview.chromium.org/505913003/diff/40001/cc/resources/picture_layer_tiling_unittest.cc File cc/resources/picture_layer_tiling_unittest.cc (right): https://codereview.chromium.org/505913003/diff/40001/cc/resources/picture_layer_tiling_unittest.cc#newcode614 cc/resources/picture_layer_tiling_unittest.cc:614: tile_content_rect_inside_borders.Inset(borders, borders); ...
6 years, 3 months ago (2014-08-26 20:28:47 UTC) #17
enne (OOO)
lgtm, thanks!
6 years, 3 months ago (2014-08-26 20:33:48 UTC) #18
vmpstr
https://codereview.chromium.org/505913003/diff/60001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/505913003/diff/60001/cc/resources/picture_layer_tiling.cc#newcode942 cc/resources/picture_layer_tiling.cc:942: true /* include_borders */); Can you fix this up ...
6 years, 3 months ago (2014-08-26 20:52:34 UTC) #19
danakj
https://codereview.chromium.org/505913003/diff/60001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/505913003/diff/60001/cc/resources/picture_layer_tiling.cc#newcode942 cc/resources/picture_layer_tiling.cc:942: true /* include_borders */); On 2014/08/26 20:52:33, vmpstr wrote: ...
6 years, 3 months ago (2014-08-26 20:57:06 UTC) #20
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 3 months ago (2014-08-26 21:45:01 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/505913003/80001
6 years, 3 months ago (2014-08-26 21:46:39 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-08-26 22:58:24 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-26 23:24:12 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/49867) mac_gpu_retina_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu_retina_triggered_tests/builds/39791)
6 years, 3 months ago (2014-08-26 23:24:13 UTC) #25
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 3 months ago (2014-08-27 03:18:39 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/505913003/80001
6 years, 3 months ago (2014-08-27 03:19:52 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-08-27 04:40:07 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-27 04:46:32 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/3378)
6 years, 3 months ago (2014-08-27 04:46:33 UTC) #30
Ken Russell (switch to Gerrit)
On 2014/08/27 04:40:07, I haz the power (commit-bot) wrote: > FYI, CQ is re-trying this ...
6 years, 3 months ago (2014-08-27 08:29:50 UTC) #31
danakj
PTAL. This should fix all possible double CreateTiles based on the live tiles rect or ...
6 years, 3 months ago (2014-08-27 17:24:56 UTC) #32
danakj
Yay this stopped crashing in the webgl tests too.
6 years, 3 months ago (2014-08-27 17:53:56 UTC) #33
danakj
https://codereview.chromium.org/505913003/diff/120001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/505913003/diff/120001/cc/resources/picture_layer_tiling.cc#newcode446 cc/resources/picture_layer_tiling.cc:446: bool PictureLayerTiling::RemoveTileAt(int i, Oh, this bears mentioning. While I ...
6 years, 3 months ago (2014-08-27 18:06:42 UTC) #34
vmpstr
https://codereview.chromium.org/505913003/diff/180001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/505913003/diff/180001/cc/resources/picture_layer_tiling.cc#newcode189 cc/resources/picture_layer_tiling.cc:189: live_tiles_rect_.Intersect(content_rect); nit: Put a comment here saying that this ...
6 years, 3 months ago (2014-08-27 19:13:21 UTC) #35
danakj
Thanks! PTAL https://codereview.chromium.org/505913003/diff/180001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/505913003/diff/180001/cc/resources/picture_layer_tiling.cc#newcode189 cc/resources/picture_layer_tiling.cc:189: live_tiles_rect_.Intersect(content_rect); On 2014/08/27 19:13:21, vmpstr wrote: > ...
6 years, 3 months ago (2014-08-27 19:27:01 UTC) #36
vmpstr
https://codereview.chromium.org/505913003/diff/220001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/505913003/diff/220001/cc/resources/picture_layer_tiling.cc#newcode222 cc/resources/picture_layer_tiling.cc:222: DCHECK_EQ(after_right, before_right + 1); That looks good, but is ...
6 years, 3 months ago (2014-08-27 19:30:45 UTC) #37
danakj
https://codereview.chromium.org/505913003/diff/220001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/505913003/diff/220001/cc/resources/picture_layer_tiling.cc#newcode222 cc/resources/picture_layer_tiling.cc:222: DCHECK_EQ(after_right, before_right + 1); On 2014/08/27 19:30:45, vmpstr wrote: ...
6 years, 3 months ago (2014-08-27 19:35:12 UTC) #38
danakj
Moar comment PTAL
6 years, 3 months ago (2014-08-27 19:36:17 UTC) #39
danakj
One of my DCHECKs is a lie it looks like, I'll look into it.
6 years, 3 months ago (2014-08-27 20:01:45 UTC) #40
danakj
Ah, PictureLayerImpl::PushPropsTo calls tilings_->RemoveTilesInRegion() before it sets the client on its own tilings_, which caused ...
6 years, 3 months ago (2014-08-27 21:02:34 UTC) #41
vmpstr
lgtm https://codereview.chromium.org/505913003/diff/240001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/505913003/diff/240001/cc/resources/picture_layer_tiling.cc#newcode220 cc/resources/picture_layer_tiling.cc:220: // and/or column of tiles may now exist ...
6 years, 3 months ago (2014-08-27 22:28:50 UTC) #42
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 3 months ago (2014-08-28 18:15:10 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/505913003/280001
6 years, 3 months ago (2014-08-28 18:16:30 UTC) #44
danakj
The last patchset passed all the bots and this is just a rebase, ran cc_unittests ...
6 years, 3 months ago (2014-08-28 18:19:55 UTC) #45
danakj
Committed patchset #15 (id:280001) to pending queue manually as 944b1ce (presubmit successful).
6 years, 3 months ago (2014-08-28 18:21:12 UTC) #46
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:00:42 UTC) #47
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/e3b7da9e87ee035c2c4529ccbfe541a7ffebd077
Cr-Commit-Position: refs/heads/master@{#292417}

Powered by Google App Engine
This is Rietveld 408576698