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

Unified Diff: remoting/host/resizing_host_observer.cc

Issue 13983010: Use webrtc::DesktopCapturer for screen capturer implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/ipc_video_frame_capturer.cc ('k') | remoting/host/resizing_host_observer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/resizing_host_observer.cc
diff --git a/remoting/host/resizing_host_observer.cc b/remoting/host/resizing_host_observer.cc
index 658a39bd44af68308fb8145a494805e86aedc86c..ccb141feb205caa6f588268b42701235c0976053 100644
--- a/remoting/host/resizing_host_observer.cc
+++ b/remoting/host/resizing_host_observer.cc
@@ -116,15 +116,15 @@ void ResizingHostObserver::SetScreenResolution(
// If the implementation returns any sizes, pick the best one according to
// the algorithm described in CandidateSize::IsBetterThen.
- std::list<SkISize> sizes =
- desktop_resizer_->GetSupportedSizes(resolution.dimensions_);
- if (sizes.empty()) {
+ SkISize dimentions = SkISize::Make(
+ resolution.dimensions().width(), resolution.dimensions().height());
+ std::list<SkISize> sizes = desktop_resizer_->GetSupportedSizes(dimentions);
+ if (sizes.empty())
return;
- }
- CandidateSize best_size(sizes.front(), resolution.dimensions_);
+ CandidateSize best_size(sizes.front(), dimentions);
for (std::list<SkISize>::const_iterator i = ++sizes.begin();
i != sizes.end(); ++i) {
- CandidateSize candidate_size(*i, resolution.dimensions_);
+ CandidateSize candidate_size(*i, dimentions);
if (candidate_size.IsBetterThan(best_size)) {
best_size = candidate_size;
}
« no previous file with comments | « remoting/host/ipc_video_frame_capturer.cc ('k') | remoting/host/resizing_host_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698