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

Unified Diff: remoting/host/desktop_session_agent.cc

Issue 11821004: Remove unused VideoFrameCapturer::size_most_recent() method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback Created 7 years, 11 months 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/desktop_session_agent.h ('k') | remoting/host/ipc_video_frame_capturer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_session_agent.cc
diff --git a/remoting/host/desktop_session_agent.cc b/remoting/host/desktop_session_agent.cc
index aec9c1ea60ad0e0e5717abbe01b9bc504f07e51b..a09e64395050939d3abc9381ea3e6b025f52e215 100644
--- a/remoting/host/desktop_session_agent.cc
+++ b/remoting/host/desktop_session_agent.cc
@@ -217,6 +217,8 @@ void DesktopSessionAgent::OnCaptureCompleted(
scoped_refptr<CaptureData> capture_data) {
DCHECK(video_capture_task_runner()->BelongsToCurrentThread());
+ current_size_ = capture_data->size();
+
// Serialize CaptureData
SerializedCapturedData serialized_data;
serialized_data.shared_buffer_id = capture_data->shared_buffer()->id();
@@ -341,7 +343,7 @@ void DesktopSessionAgent::OnInvalidateRegion(
return;
}
- SkIRect bounds = SkIRect::MakeSize(video_capturer_->size_most_recent());
+ SkIRect bounds = SkIRect::MakeSize(current_size_);
// Convert |invalid_rects| into a region.
SkRegion invalid_region;
@@ -512,6 +514,7 @@ DesktopSessionAgent::DesktopSessionAgent(
input_task_runner_(input_task_runner),
io_task_runner_(io_task_runner),
video_capture_task_runner_(video_capture_task_runner),
+ current_size_(SkISize::Make(0, 0)),
next_shared_buffer_id_(1),
started_(false) {
DCHECK(caller_task_runner_->BelongsToCurrentThread());
« no previous file with comments | « remoting/host/desktop_session_agent.h ('k') | remoting/host/ipc_video_frame_capturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698