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

Issue 5831706594508800: cc: Cleanup Layer::SetNeedsDisplayInRect (Closed)

Created:
7 years, 5 months ago by enne (OOO)
Modified:
7 years, 4 months ago
Reviewers:
danakj, skaslev, slavi, ojan
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Cleanup Layer::SetNeedsDisplayInRect This comment is no longer true. Also, simplified the early out condition and added a test. R=danakj@chromium.org BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214103 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214819

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase #

Patch Set 3 : Fix image layers #

Total comments: 2

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -13 lines) Patch
M cc/layers/image_layer.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M cc/layers/layer.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 1 chunk +4 lines, -5 lines 0 comments Download
M cc/layers/layer_unittest.cc View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
M cc/layers/nine_patch_layer.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M cc/resources/image_layer_updater.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/image_layer_updater.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
enne (OOO)
7 years, 5 months ago (2013-07-11 21:25:52 UTC) #1
danakj
LGTM
7 years, 5 months ago (2013-07-11 21:28:51 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/5831706594508800/5629499534213120
7 years, 5 months ago (2013-07-11 21:33:52 UTC) #3
slavi
https://codereview.chromium.org/5831706594508800/diff/5629499534213120/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/5831706594508800/diff/5629499534213120/cc/layers/layer.cc#newcode623 cc/layers/layer.cc:623: if (dirty_rect.IsEmpty()) Don't do this. When I wrote that ...
7 years, 5 months ago (2013-07-11 21:58:09 UTC) #4
danakj
https://codereview.chromium.org/5831706594508800/diff/5629499534213120/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/5831706594508800/diff/5629499534213120/cc/layers/layer.cc#newcode623 cc/layers/layer.cc:623: if (dirty_rect.IsEmpty()) On 2013/07/11 21:58:09, slavi wrote: > Don't ...
7 years, 5 months ago (2013-07-11 21:59:12 UTC) #5
enne (OOO)
Without passing a valid dirty rect, how is that code correct during partial swap? What's ...
7 years, 5 months ago (2013-07-11 22:06:09 UTC) #6
skaslev
I don't remember the details anymore. I can refer you to the example in the ...
7 years, 5 months ago (2013-07-12 00:32:04 UTC) #7
enne (OOO)
skaslev: How does that code even get called with a compositor? It looks like every ...
7 years, 5 months ago (2013-07-24 00:52:01 UTC) #8
tomhudson
https://codereview.chromium.org/5831706594508800/diff/5629499534213120/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/5831706594508800/diff/5629499534213120/cc/layers/layer.cc#newcode623 cc/layers/layer.cc:623: if (dirty_rect.IsEmpty()) On 2013/07/11 21:58:09, slavi wrote: > Don't ...
7 years, 5 months ago (2013-07-24 09:02:42 UTC) #9
enne (OOO)
I do not think that the code that skaslev points out can make it to ...
7 years, 5 months ago (2013-07-24 19:07:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/5831706594508800/5629499534213120
7 years, 5 months ago (2013-07-24 19:11:24 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/5831706594508800/5629499534213120
7 years, 5 months ago (2013-07-25 15:22:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/5831706594508800/5629499534213120
7 years, 4 months ago (2013-07-26 03:11:22 UTC) #13
commit-bot: I haz the power
Change committed as 214103
7 years, 4 months ago (2013-07-28 08:34:47 UTC) #14
ojan
Looks like this patch caused regressions: https://code.google.com/p/chromium/issues/detail?id=265258
7 years, 4 months ago (2013-07-28 18:23:19 UTC) #15
Stephen White
On 2013/07/28 18:23:19, ojan wrote: > Looks like this patch caused regressions: > https://code.google.com/p/chromium/issues/detail?id=265258 Yep, ...
7 years, 4 months ago (2013-07-29 06:37:26 UTC) #16
enne (OOO)
danakj: Take two. PTAL. https://codereview.chromium.org/5831706594508800/diff/54001/cc/layers/image_layer.cc File cc/layers/image_layer.cc (right): https://codereview.chromium.org/5831706594508800/diff/54001/cc/layers/image_layer.cc#newcode46 cc/layers/image_layer.cc:46: if (!updater_->UsingBitmap(bitmap_)) { The reason ...
7 years, 4 months ago (2013-07-30 20:01:27 UTC) #17
danakj
LGTM Seems like NinePatchLayer could remove bitmap_dirty_ and use your new IsUsingBitmap method as well.
7 years, 4 months ago (2013-07-31 01:19:07 UTC) #18
enne (OOO)
On 2013/07/31 01:19:07, danakj wrote: > Seems like NinePatchLayer could remove bitmap_dirty_ and use your ...
7 years, 4 months ago (2013-07-31 02:30:56 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/5831706594508800/54001
7 years, 4 months ago (2013-07-31 02:52:47 UTC) #20
commit-bot: I haz the power
Failed to apply patch for cc/layers/layer.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-07-31 02:52:53 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/5831706594508800/67001
7 years, 4 months ago (2013-07-31 17:31:16 UTC) #22
commit-bot: I haz the power
7 years, 4 months ago (2013-07-31 20:20:26 UTC) #23
Message was sent while issue was closed.
Change committed as 214819

Powered by Google App Engine
This is Rietveld 408576698