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

Unified Diff: remoting/base/encoder_row_based.cc

Issue 10736046: Add DPI information to video packets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewer comments. Created 8 years, 5 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/base/capture_data.cc ('k') | remoting/base/encoder_vp8.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/encoder_row_based.cc
diff --git a/remoting/base/encoder_row_based.cc b/remoting/base/encoder_row_based.cc
index 41d9e9e7941ef8630d863a11f33e7b821e307d19..c28c06cbe2f39d417ef2d67f330343766015ebb2 100644
--- a/remoting/base/encoder_row_based.cc
+++ b/remoting/base/encoder_row_based.cc
@@ -124,6 +124,11 @@ void EncoderRowBased::EncodeRect(const SkIRect& rect, bool last) {
packet->set_capture_time_ms(capture_data_->capture_time_ms());
packet->set_client_sequence_number(
capture_data_->client_sequence_number());
+ SkIPoint dpi(capture_data_->dpi());
+ if (dpi.x())
+ packet->mutable_format()->set_x_dpi(dpi.x());
+ if (dpi.y())
+ packet->mutable_format()->set_y_dpi(dpi.y());
if (last)
packet->set_flags(packet->flags() | VideoPacket::LAST_PARTITION);
DCHECK(row_pos == row_size);
« no previous file with comments | « remoting/base/capture_data.cc ('k') | remoting/base/encoder_vp8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698