Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(796)

Unified Diff: remoting/host/mouse_clamping_filter.cc

Issue 1472873005: Add VideoStream interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_video_pump
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/mouse_clamping_filter.h ('k') | remoting/protocol/connection_to_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/mouse_clamping_filter.cc
diff --git a/remoting/host/mouse_clamping_filter.cc b/remoting/host/mouse_clamping_filter.cc
deleted file mode 100644
index d9c545a3e2a9730420e541a9007321abbe7f4565..0000000000000000000000000000000000000000
--- a/remoting/host/mouse_clamping_filter.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "remoting/host/mouse_clamping_filter.h"
-
-#include "remoting/proto/event.pb.h"
-#include "remoting/proto/video.pb.h"
-
-namespace remoting {
-
-MouseClampingFilter::MouseClampingFilter(
- protocol::InputStub* input_stub)
- : input_filter_(input_stub),
- video_stub_(nullptr) {
-}
-
-MouseClampingFilter::~MouseClampingFilter() {
-}
-
-void MouseClampingFilter::ProcessVideoPacket(
- scoped_ptr<VideoPacket> video_packet,
- const base::Closure& done) {
- // Configure the MouseInputFilter to clamp to the video dimensions.
- if (video_packet->format().has_screen_width() &&
- video_packet->format().has_screen_height()) {
- webrtc::DesktopSize screen_size =
- webrtc::DesktopSize(video_packet->format().screen_width(),
- video_packet->format().screen_height());
- input_filter_.set_input_size(screen_size);
- input_filter_.set_output_size(screen_size);
- }
-
- video_stub_->ProcessVideoPacket(video_packet.Pass(), done);
-}
-
-} // namespace remoting
« no previous file with comments | « remoting/host/mouse_clamping_filter.h ('k') | remoting/protocol/connection_to_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698