diff options
author | wuchengli@chromium.org <wuchengli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-29 11:20:28 +0000 |
---|---|---|
committer | wuchengli@chromium.org <wuchengli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-29 11:20:28 +0000 |
commit | ff6ab28a1aff88f80c69f79bf6f01c48ea36e001 (patch) | |
tree | 21bfbe8644accf005c5aa65bda0464a852277541 /content/common/gpu/gpu_command_buffer_stub.cc | |
parent | cfe43b2b2c0917646b68b9c09fb51790f2a76153 (diff) | |
download | chromium_src-ff6ab28a1aff88f80c69f79bf6f01c48ea36e001.zip chromium_src-ff6ab28a1aff88f80c69f79bf6f01c48ea36e001.tar.gz chromium_src-ff6ab28a1aff88f80c69f79bf6f01c48ea36e001.tar.bz2 |
Run VDA::Decode on GPU IO thread if VDA supports it.
Sometimes GPU main thread is very busy and VDA::Decode is not
run immediately on the main thread. Using MessageFilter to
run VDA::Decode directly on IO thread can reduce decode
latency by around 80ms on various CrOS devices.
BUG=170345
TEST=Try http://apprtc.appspot.com/?debug=loopback on Chromebook Daisy.
Run local hardware-accelerated video on Daisy and Link.
Run video_decode_accelerator_unittest on Daisy.
Review URL: https://chromiumcodereview.appspot.com/23125014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220259 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/gpu/gpu_command_buffer_stub.cc')
-rw-r--r-- | content/common/gpu/gpu_command_buffer_stub.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc index 78c0a49..cdc4a6b 100644 --- a/content/common/gpu/gpu_command_buffer_stub.cc +++ b/content/common/gpu/gpu_command_buffer_stub.cc @@ -722,7 +722,7 @@ void GpuCommandBufferStub::OnCreateVideoDecoder( int decoder_route_id = channel_->GenerateRouteID(); GpuVideoDecodeAccelerator* decoder = new GpuVideoDecodeAccelerator(decoder_route_id, this); - decoder->Initialize(profile, reply_message); + decoder->Initialize(profile, reply_message, channel_->io_message_loop()); // decoder is registered as a DestructionObserver of this stub and will // self-delete during destruction of this stub. } |