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

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: 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
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..d3a80138cdf96ae60fce910e89ef32eac5d5a97c 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());
+ size_most_recent_ = 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(size_most_recent_);
// Convert |invalid_rects| into a region.
SkRegion invalid_region;
@@ -513,6 +515,7 @@ DesktopSessionAgent::DesktopSessionAgent(
io_task_runner_(io_task_runner),
video_capture_task_runner_(video_capture_task_runner),
next_shared_buffer_id_(1),
+ size_most_recent_(SkISize::Make(0, 0)),
started_(false) {
DCHECK(caller_task_runner_->BelongsToCurrentThread());
}

Powered by Google App Engine
This is Rietveld 408576698