forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update functionalities to snapshot.cc.
1. Accelerate GrabWindowSnapshotAsyncPNG by using gfx::PNGCodec::FastEncodeBGRASkBitmap, which halves down the encoding time 2. Add GrabWindowSnapshotAsyncJPEG for scenarios that require low latency since JPEG encoder typically is 5x faster than PNG encoder. BUG=b/37167971 TEST=local benchmark GrabWindowSnapshotAsyncPNG indicates 2x speedup; GrabWindowSnapshotAsyncJPEG works. Review-Url: https://codereview.chromium.org/2815913007 Cr-Commit-Position: refs/heads/master@{#465132}
- Loading branch information
muyuanli
authored and
Commit bot
committed
Apr 18, 2017
1 parent
341a827
commit 1c304d5
Showing
2 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters