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

Issue 11824013: Clamps to invalidation region of a PictureLayer to the layer bounds to avoid adding unecessary bulk (Closed)

Created:
7 years, 11 months ago by Vangelis Kokkevis
Modified:
7 years, 11 months ago
Reviewers:
vangelis, danakj, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Clamp invalidation regions of PictureLayer to layer bounds Clamps the incoming invalidation regions of PictureLayer to the actual layer bounds to avoid bloating the update region data structure. It also adds an early out when the invalidation rect is empty. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175952

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M cc/picture_layer.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
vangelis
Small patch, ready for review. Is contentBounds() the right bounds to be clamping the invalidation ...
7 years, 11 months ago (2013-01-09 00:28:06 UTC) #1
danakj
https://codereview.chromium.org/11824013/diff/1/cc/picture_layer.cc File cc/picture_layer.cc (right): https://codereview.chromium.org/11824013/diff/1/cc/picture_layer.cc#newcode54 cc/picture_layer.cc:54: if (!rect.IsEmpty()) { you could also rect.Intersect(gfx::Rect(contentBounds()) to do ...
7 years, 11 months ago (2013-01-09 00:31:57 UTC) #2
vangelis
Thanks for the review! On 2013/01/09 00:31:57, danakj wrote: > https://codereview.chromium.org/11824013/diff/1/cc/picture_layer.cc > File cc/picture_layer.cc (right): ...
7 years, 11 months ago (2013-01-09 00:57:14 UTC) #3
danakj
https://codereview.chromium.org/11824013/diff/5001/cc/picture_layer.cc File cc/picture_layer.cc (right): https://codereview.chromium.org/11824013/diff/5001/cc/picture_layer.cc#newcode54 cc/picture_layer.cc:54: if (!rect.IsEmpty()) { i think this if() is kinda ...
7 years, 11 months ago (2013-01-09 01:00:05 UTC) #4
danakj
Also, description nit: can you make your description format as: <one line single sentence> <blank> ...
7 years, 11 months ago (2013-01-09 01:01:04 UTC) #5
vangelis
https://codereview.chromium.org/11824013/diff/5001/cc/picture_layer.cc File cc/picture_layer.cc (right): https://codereview.chromium.org/11824013/diff/5001/cc/picture_layer.cc#newcode54 cc/picture_layer.cc:54: if (!rect.IsEmpty()) { On 2013/01/09 01:00:05, danakj wrote: > ...
7 years, 11 months ago (2013-01-09 01:50:36 UTC) #6
danakj
LGTM https://codereview.chromium.org/11824013/diff/5001/cc/picture_layer.cc File cc/picture_layer.cc (right): https://codereview.chromium.org/11824013/diff/5001/cc/picture_layer.cc#newcode54 cc/picture_layer.cc:54: if (!rect.IsEmpty()) { On 2013/01/09 01:50:36, vangelis wrote: ...
7 years, 11 months ago (2013-01-09 01:51:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vangelis@chromium.org/11824013/4002
7 years, 11 months ago (2013-01-09 20:34:11 UTC) #8
vangelis
On 2013/01/09 01:51:48, danakj wrote: > LGTM > > https://codereview.chromium.org/11824013/diff/5001/cc/picture_layer.cc > File cc/picture_layer.cc (right): > ...
7 years, 11 months ago (2013-01-09 20:36:16 UTC) #9
commit-bot: I haz the power
7 years, 11 months ago (2013-01-10 00:54:59 UTC) #10
Message was sent while issue was closed.
Change committed as 175952

Powered by Google App Engine
This is Rietveld 408576698