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

Issue 490393002: Simplify IOSurface CoreAnimation code: Part 2 (Closed)

Created:
6 years, 4 months ago by ccameron
Modified:
6 years, 3 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Simplify IOSurface CoreAnimation code: Part 2 It isn't necessary to mess around with sharing CGLContextObjs anymore, they were necessary only to share data between the frame subscriber and the RenderWidgetHostViewMac. Just give each IOSurfaceLayer its own CGLContextObj, and draw using immediate mode (using shaders resulted in an increase in startup time). BUG=314190 TBR=pfeldman@chromium.org R=kbr@chromium.org Committed: https://crrev.com/672e23e9a1f1e11cb5f62c46ab8f687e3ca9d3da Cr-Commit-Position: refs/heads/master@{#293103}

Patch Set 1 #

Patch Set 2 : Lower similarity #

Total comments: 2

Patch Set 3 : Incorporate review feedback #

Patch Set 4 : Missed colon #

Total comments: 1

Patch Set 5 : Rebase #

Patch Set 6 : Second half #

Patch Set 7 : Report acutal pixel differences #

Patch Set 8 : Test where the bug is coming in #

Patch Set 9 : Add more time #

Patch Set 10 : Smaller scope #

Patch Set 11 : Try with pixel format bit #

Patch Set 12 : Pixel format bit #

Patch Set 13 : Final version #

Patch Set 14 : Without the extra bit #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -296 lines) Patch
M content/browser/compositor/browser_compositor_view_private_mac.mm View 1 2 3 4 5 10 11 12 3 chunks +4 lines, -25 lines 0 comments Download
M content/browser/compositor/io_surface_layer_mac.h View 1 2 3 4 5 6 7 10 11 12 5 chunks +24 lines, -80 lines 0 comments Download
M content/browser/compositor/io_surface_layer_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +284 lines, -188 lines 1 comment Download
M content/browser/devtools/renderer_overrides_handler_browsertest.cc View 1 2 3 4 5 6 10 11 12 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 46 (2 generated)
ccameron
ping
6 years, 3 months ago (2014-08-25 23:23:56 UTC) #1
Ken Russell (switch to Gerrit)
Excellent cleanup and simplification. LGTM https://codereview.chromium.org/490393002/diff/20001/content/browser/compositor/io_surface_layer_mac.mm File content/browser/compositor/io_surface_layer_mac.mm (right): https://codereview.chromium.org/490393002/diff/20001/content/browser/compositor/io_surface_layer_mac.mm#newcode256 content/browser/compositor/io_surface_layer_mac.mm:256: // Open the IOSurface ...
6 years, 3 months ago (2014-08-26 21:14:38 UTC) #2
ccameron
Thanks! https://codereview.chromium.org/490393002/diff/20001/content/browser/compositor/io_surface_layer_mac.mm File content/browser/compositor/io_surface_layer_mac.mm (right): https://codereview.chromium.org/490393002/diff/20001/content/browser/compositor/io_surface_layer_mac.mm#newcode256 content/browser/compositor/io_surface_layer_mac.mm:256: // Open the IOSurface into this texture, if ...
6 years, 3 months ago (2014-08-26 23:11:50 UTC) #3
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 3 months ago (2014-08-26 23:11:54 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/490393002/40001
6 years, 3 months ago (2014-08-26 23:13:29 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_gpu_retina_triggered_tests on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-08-27 00:24:32 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-27 00:29:06 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/7271)
6 years, 3 months ago (2014-08-27 00:29:08 UTC) #8
Ken Russell (switch to Gerrit)
On 2014/08/27 00:24:32, I haz the power (commit-bot) wrote: > FYI, CQ is re-trying this ...
6 years, 3 months ago (2014-08-27 00:51:45 UTC) #9
ccameron
https://codereview.chromium.org/490393002/diff/60001/content/browser/compositor/io_surface_layer_mac.mm File content/browser/compositor/io_surface_layer_mac.mm (right): https://codereview.chromium.org/490393002/diff/60001/content/browser/compositor/io_surface_layer_mac.mm#newcode88 content/browser/compositor/io_surface_layer_mac.mm:88: if ([self respondsToSelector:(@selector(contentsScale))]) The case of the extraneous colon.
6 years, 3 months ago (2014-08-27 02:26:26 UTC) #10
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 3 months ago (2014-08-27 02:26:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/490393002/60001
6 years, 3 months ago (2014-08-27 02:27:52 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel_swarming on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-27 03:21:25 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-27 03:25:14 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/7340)
6 years, 3 months ago (2014-08-27 03:25:15 UTC) #15
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 3 months ago (2014-08-27 05:16:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/490393002/60001
6 years, 3 months ago (2014-08-27 05:17:13 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel_swarming on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-27 05:40:00 UTC) #18
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 3 months ago (2014-08-27 05:55:57 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/490393002/80001
6 years, 3 months ago (2014-08-27 05:56:00 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel_swarming on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-27 06:56:20 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-27 07:36:43 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/7389)
6 years, 3 months ago (2014-08-27 07:36:45 UTC) #23
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 3 months ago (2014-08-27 19:36:43 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/490393002/80001
6 years, 3 months ago (2014-08-27 19:37:13 UTC) #25
ccameron
On 2014/08/27 19:37:13, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 3 months ago (2014-08-27 19:43:40 UTC) #26
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel_swarming on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-27 20:46:28 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-27 21:23:00 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/7668)
6 years, 3 months ago (2014-08-27 21:23:02 UTC) #29
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 3 months ago (2014-08-29 07:28:48 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/490393002/100001
6 years, 3 months ago (2014-08-29 07:29:20 UTC) #31
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel_swarming on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-29 08:27:47 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-29 09:00:10 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/8399)
6 years, 3 months ago (2014-08-29 09:00:12 UTC) #34
ccameron
On 2014/08/29 09:00:12, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 3 months ago (2014-08-29 15:11:27 UTC) #35
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 3 months ago (2014-08-29 15:37:05 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/490393002/120001
6 years, 3 months ago (2014-08-29 15:38:13 UTC) #37
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel_swarming on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-29 16:54:56 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/8506)
6 years, 3 months ago (2014-08-29 17:24:46 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/490393002/240001
6 years, 3 months ago (2014-09-03 08:13:49 UTC) #42
commit-bot: I haz the power
Committed patchset #13 (id:240001) as a83898264f64ad83bb98139e5e0dcb2c77db1997
6 years, 3 months ago (2014-09-03 09:23:13 UTC) #43
aiolos (Not reviewing)
A revert of this CL (patchset #13 id:240001) has been created in https://codereview.chromium.org/528403002/ by aiolos@chromium.org. ...
6 years, 3 months ago (2014-09-03 17:12:51 UTC) #44
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/672e23e9a1f1e11cb5f62c46ab8f687e3ca9d3da Cr-Commit-Position: refs/heads/master@{#293103}
6 years, 3 months ago (2014-09-10 03:24:36 UTC) #45
ccameron
6 years, 3 months ago (2014-09-21 09:16:59 UTC) #46
Message was sent while issue was closed.
Adding a comment for something that needs to be fixed when reverting this.

https://codereview.chromium.org/490393002/diff/260001/content/browser/composi...
File content/browser/compositor/io_surface_layer_mac.mm (left):

https://codereview.chromium.org/490393002/diff/260001/content/browser/composi...
content/browser/compositor/io_surface_layer_mac.mm:149:
SetNeedsDisplayAndDisplayAndAck();
*** this is wrong -- it needs to be DisplayIfNeededAndAck.

Powered by Google App Engine
This is Rietveld 408576698