summaryrefslogtreecommitdiffstats
path: root/jingle/glue/thread_wrapper_unittest.cc
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-01 19:59:42 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-01 19:59:42 +0000
commit2cc0ec84815e5167b7ecbdae94a47033e95422e6 (patch)
treee4a66d4b83294f108acde9878cb5b2e6ec60ca7b /jingle/glue/thread_wrapper_unittest.cc
parenta4ff9eaea74e058144eda4164fe4694e6e1b9c21 (diff)
downloadchromium_src-2cc0ec84815e5167b7ecbdae94a47033e95422e6.zip
chromium_src-2cc0ec84815e5167b7ecbdae94a47033e95422e6.tar.gz
chromium_src-2cc0ec84815e5167b7ecbdae94a47033e95422e6.tar.bz2
Optimize mac capturer to copy memory only dirty rect.
This optimization shave a lot of memory copies when there are small changes on the screen. On the computer I tested capturer nows run with 9ms when before was 20ms. This however increases capture time when more than half of the screen is changing or the dirty rects overlap. There are several further optimiations can be done: 1. Merge dirty rects so that they don't overlap. 2. Subtract current dirty rects from last dirty rects. If the above two are implemented we can then shave copying in OpenGL. This can be done by grouping rectangles and download them as a bulk, this can bring capture time to be less than 5ms. Overall this patch shaves 11ms, about 20% of latency on the mac host I uses. BUG=91201 TEST=Mac capturer runs faster Review URL: http://codereview.chromium.org/7540024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94964 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'jingle/glue/thread_wrapper_unittest.cc')
0 files changed, 0 insertions, 0 deletions