Chromium Code Reviews
DescriptionImplement 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 #
Messages
Total messages: 17 (0 generated)
|
|||||||||||||||||||||||||||||||||||||