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

Issue 1271123002: Mac: Enable partial swap (Closed)

Created:
5 years, 4 months ago by ccameron
Modified:
5 years, 4 months ago
Reviewers:
danakj, Andre
CC:
chromium-reviews, darin-cc_chromium.org, jam, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Enable partial swap This is pretty trivial when using the overlay path. Just create a new layer for the damage. The partial damage layer can be created, removed, or resized with basically no cost, because its backing is the already-existing IOSurface. As each partial swap comes in, union the existing overlay layer's rect with the rect of the new partial swap. If this grows "too big", then do a full swap (which clears the accumulated union). The constants here are pretty arbitrary. BUG=474299 Committed: https://crrev.com/aae371ca10e047d9b192acf869f8ff9601d3cdf7 Cr-Commit-Position: refs/heads/master@{#342771}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Incorporate review feedback #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -6 lines) Patch
M content/common/gpu/image_transport_surface_overlay_mac.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M content/common/gpu/image_transport_surface_overlay_mac.mm View 1 2 4 chunks +75 lines, -6 lines 0 comments Download
M ui/gfx/geometry/rect_f.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M ui/gfx/geometry/rect_f.cc View 1 2 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
ccameron
(much rejoicing)
5 years, 4 months ago (2015-08-05 03:06:00 UTC) #2
Andre
Very nice! https://codereview.chromium.org/1271123002/diff/1/content/common/gpu/image_transport_surface_overlay_mac.mm File content/common/gpu/image_transport_surface_overlay_mac.mm (right): https://codereview.chromium.org/1271123002/diff/1/content/common/gpu/image_transport_surface_overlay_mac.mm#newcode28 content/common/gpu/image_transport_surface_overlay_mac.mm:28: -(void) setContentsChanged; - (void)set... https://codereview.chromium.org/1271123002/diff/1/content/common/gpu/image_transport_surface_overlay_mac.mm#newcode111 content/common/gpu/image_transport_surface_overlay_mac.mm:111: double ...
5 years, 4 months ago (2015-08-05 17:59:30 UTC) #3
ccameron
Thanks -- updated. danakj, could you take a look at the ui/gfx/geometry bits (copy-pasted from ...
5 years, 4 months ago (2015-08-06 18:55:18 UTC) #5
Andre
LGTM
5 years, 4 months ago (2015-08-06 20:02:03 UTC) #6
danakj
Woa, CGRect is floats? Maybe we shouldn't have those Rect conversions that they should only ...
5 years, 4 months ago (2015-08-06 20:30:48 UTC) #7
ccameron
Thanks! On 2015/08/06 20:30:48, danakj wrote: > Woa, CGRect is floats? CGRect is CGFloat, which ...
5 years, 4 months ago (2015-08-06 20:35:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1271123002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1271123002/40001
5 years, 4 months ago (2015-08-11 00:36:27 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-08-11 01:41:52 UTC) #12
commit-bot: I haz the power
5 years, 4 months ago (2015-08-11 01:43:01 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/aae371ca10e047d9b192acf869f8ff9601d3cdf7
Cr-Commit-Position: refs/heads/master@{#342771}

Powered by Google App Engine
This is Rietveld 408576698