summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-21 02:57:32 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-21 02:57:32 +0000
commit060f76d553788c941f33e27e46daa159b069cb58 (patch)
tree8b56a55918ec88f8d9c7598ed624d37782780e7c /remoting
parent7e2490ca4eb88f4aaa0ac375a389d6c6896c2e38 (diff)
downloadchromium_src-060f76d553788c941f33e27e46daa159b069cb58.zip
chromium_src-060f76d553788c941f33e27e46daa159b069cb58.tar.gz
chromium_src-060f76d553788c941f33e27e46daa159b069cb58.tar.bz2
Revert 174322 - broke the tree
> [Chromoting] Check cursor data size on client before copying data. > > BUG= > > Review URL: https://codereview.chromium.org/11308264 TBR=garykac@chromium.org Review URL: https://codereview.chromium.org/11571095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174325 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r--remoting/client/plugin/chromoting_instance.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index ee8459d..4b2be13 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -456,15 +456,6 @@ void ChromotingInstance::SetCursorShape(
return;
}
- int cursor_total_bytes = width * height * kBytesPerPixel;
- if (cursor_shape.data().size() < cursor_total_bytes) {
- VLOG(2) << "Not enough cursor data. Expected "
- << cursor_total_bytes << " bytes for a "
- << width << "x" << height << " cursor. Only received "
- << cursor_shape.data().size() << " bytes";
- return;
- }
-
if (pp::ImageData::GetNativeImageDataFormat() !=
PP_IMAGEDATAFORMAT_BGRA_PREMUL) {
VLOG(2) << "Unable to set cursor shape - non-native image format";