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

Issue 10917307: Implement asynchronous operation for RWHVP::CopyFromCompositingSurface on Mac (Closed)

Created:
8 years, 3 months ago by Alpha Left Google
Modified:
7 years, 2 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su, Zhenyao Mo, jbauman
Visibility:
Public.

Description

Implement asynchronous operation for RWHVP::CopyFromCompositingSurface on Mac Current implementation blocks the UI thread for a long period of time. This change uses asynchronous operation to copy the frame buffer. I have tested this manually with two cases: 1. Thumbnail generation Tested thumbnails are generated successfully with --force-compositing-mode. I have also verified that CopyTo() now completes almost instantaneously while FinishCopy() completes in a relatively short time. Total time that UI thread is blocked is about 1/4 of previous implementation. 2. Resource destruction Manually tested that if CompositingIOSurface is destroyed before asynchronous copy is finished then GL resources associated with the copy is destroyed. BUG=145587 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158395

Patch Set 1 #

Patch Set 2 : merged #

Patch Set 3 : kTarget and linear #

Total comments: 1

Patch Set 4 : use fence and no leak #

Total comments: 16

Patch Set 5 : mazda comments #

Total comments: 3

Patch Set 6 : fixed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -51 lines) Patch
M content/browser/renderer_host/compositing_iosurface_mac.h View 1 2 3 4 5 5 chunks +45 lines, -2 lines 0 comments Download
M content/browser/renderer_host/compositing_iosurface_mac.mm View 1 2 3 4 6 chunks +163 lines, -45 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Alpha Left Google
8 years, 3 months ago (2012-09-17 23:54:11 UTC) #1
Alpha Left Google
8 years, 3 months ago (2012-09-18 00:07:45 UTC) #2
Alpha Left Google
mazda: Please review the change because this affects the thumbnailer. kbr: Please review the GL ...
8 years, 3 months ago (2012-09-18 00:08:44 UTC) #3
Nico
On Tue, Sep 18, 2012 at 9:08 AM, <hclam@chromium.org> wrote: > mazda: Please review the ...
8 years, 3 months ago (2012-09-18 02:42:19 UTC) #4
Alpha Left Google
On 2012/09/18 02:42:19, Nico wrote: > On Tue, Sep 18, 2012 at 9:08 AM, <mailto:hclam@chromium.org> ...
8 years, 3 months ago (2012-09-18 02:44:58 UTC) #5
Ken Russell (switch to Gerrit)
The overall approach seems fine to me as long as enough tests have been run ...
8 years, 3 months ago (2012-09-18 07:57:42 UTC) #6
Alpha Left Google
jbauman: kbr@ suggested you for review. reviewers: I have updated the code to use GL_APPLE_FENCE ...
8 years, 3 months ago (2012-09-20 04:35:19 UTC) #7
mazda
Is it possible to make FinishCopy work even after RWHVM is deleted? I'd like to ...
8 years, 3 months ago (2012-09-20 08:41:10 UTC) #8
Alpha Left Google
Thanks for review. I can make FinishCopy to be called when CompositingIOSurface is deleted. I'm ...
8 years, 3 months ago (2012-09-21 01:08:31 UTC) #9
Alpha Left Google
Ping.
8 years, 3 months ago (2012-09-21 17:44:34 UTC) #10
Ken Russell (switch to Gerrit)
FWIW the current version of this patch looks good to me.
8 years, 3 months ago (2012-09-21 21:47:38 UTC) #11
Nico
mazda: happy too?
8 years, 3 months ago (2012-09-22 02:07:26 UTC) #12
mazda
> I can make FinishCopy to be called when CompositingIOSurface is deleted. I'm > just ...
8 years, 3 months ago (2012-09-22 04:42:13 UTC) #13
Nico
lgtm stamp since it looks good to kbr and mazda. (I'm not convinced that GL ...
8 years, 3 months ago (2012-09-22 11:12:21 UTC) #14
Alpha Left Google
On 2012/09/22 11:12:21, Nico wrote: > lgtm stamp since it looks good to kbr and ...
8 years, 3 months ago (2012-09-24 19:04:25 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/10917307/17003
8 years, 3 months ago (2012-09-24 19:06:00 UTC) #16
commit-bot: I haz the power
8 years, 2 months ago (2012-09-24 21:32:44 UTC) #17
Change committed as 158395

Powered by Google App Engine
This is Rietveld 408576698