diff options
author | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-21 10:16:41 +0000 |
---|---|---|
committer | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-21 10:16:41 +0000 |
commit | da4daa7ff7b7393e7fa4491d1435653d8aa106a5 (patch) | |
tree | 5fba881f404af703dfa9b58a35a1ac2671971a0a /remoting/client/rectangle_update_decoder.cc | |
parent | 12ffada4b59da14b009815b59b77350fdb3599a4 (diff) | |
download | chromium_src-da4daa7ff7b7393e7fa4491d1435653d8aa106a5.zip chromium_src-da4daa7ff7b7393e7fa4491d1435653d8aa106a5.tar.gz chromium_src-da4daa7ff7b7393e7fa4491d1435653d8aa106a5.tar.bz2 |
Added the desktop shape fields to VideoPacket.
If the host passes the desktop shape region in a VideoPacket the client will use it to draw transparent regions. The client also informs the web-app of the desktop shape changes, so it can set the input passthrough region correctly.
Review URL: https://chromiumcodereview.appspot.com/17511004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207789 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/rectangle_update_decoder.cc')
-rw-r--r-- | remoting/client/rectangle_update_decoder.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/remoting/client/rectangle_update_decoder.cc b/remoting/client/rectangle_update_decoder.cc index 4f301ce..6c2f61b 100644 --- a/remoting/client/rectangle_update_decoder.cc +++ b/remoting/client/rectangle_update_decoder.cc @@ -222,6 +222,10 @@ void RectangleUpdateDecoder::SetOutputSizeAndClip(const SkISize& view_size, } } +const SkRegion* RectangleUpdateDecoder::GetBufferShape() { + return decoder_->GetImageShape(); +} + void RectangleUpdateDecoder::ProcessVideoPacket(scoped_ptr<VideoPacket> packet, const base::Closure& done) { DCHECK(main_task_runner_->BelongsToCurrentThread()); |