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

Issue 10785041: Make Chromoting client plugin always render at device DPI. (Closed)

Created:
8 years, 5 months ago by Wez
Modified:
8 years, 5 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Make Chromoting client plugin always render at device DPI. This addresses image quality issues when to a high-resolution device from a high-DPI but lower resolution client. In this case Chromoting would down-scale to the plugin's DIP dimensions, only for Chrome to up-scale to device dimensions. Follow-up CLs will add DPI information to the FrameConsumer interface, and try to optimize the plugin's up-scaling mode. BUG=133349, 135089 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148012

Patch Set 1 #

Total comments: 7

Patch Set 2 : Use ceil() when calculating bottom/right coordinates. #

Patch Set 3 : Use float versions of ceil() and floor(). #

Total comments: 4

Patch Set 4 : Address review comments. #

Patch Set 5 : Rebase & fix typos. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -25 lines) Patch
M remoting/client/plugin/chromoting_instance.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 2 3 4 2 chunks +4 lines, -9 lines 0 comments Download
M remoting/client/plugin/pepper_view.h View 1 2 3 4 4 chunks +18 lines, -8 lines 0 comments Download
M remoting/client/plugin/pepper_view.cc View 1 2 3 4 3 chunks +28 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Wez
PTAL
8 years, 5 months ago (2012-07-17 18:15:31 UTC) #1
Sergey Ulanov
couple drive-by questions. https://chromiumcodereview.appspot.com/10785041/diff/1/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://chromiumcodereview.appspot.com/10785041/diff/1/remoting/client/plugin/chromoting_instance.cc#newcode331 remoting/client/plugin/chromoting_instance.cc:331: mouse_input_filter_->set_input_size(view_->get_view_size_dips()); Do we always send mouse ...
8 years, 5 months ago (2012-07-17 19:36:06 UTC) #2
Wez
https://chromiumcodereview.appspot.com/10785041/diff/1/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://chromiumcodereview.appspot.com/10785041/diff/1/remoting/client/plugin/chromoting_instance.cc#newcode331 remoting/client/plugin/chromoting_instance.cc:331: mouse_input_filter_->set_input_size(view_->get_view_size_dips()); On 2012/07/17 19:36:06, sergeyu wrote: > Do we ...
8 years, 5 months ago (2012-07-17 20:11:43 UTC) #3
Jamie
I don't think I'm a great choice of reviewer for this. I've never modified any ...
8 years, 5 months ago (2012-07-17 20:34:28 UTC) #4
Wez
Josh, can you take a look and sanity-check the use of Graphics2D::SetScale()?
8 years, 5 months ago (2012-07-17 20:54:12 UTC) #5
Josh Horwich
On 2012/07/17 20:54:12, Wez wrote: > Josh, can you take a look and sanity-check the ...
8 years, 5 months ago (2012-07-17 21:05:23 UTC) #6
Wez
sergeyu: Can you please review?
8 years, 5 months ago (2012-07-18 23:06:17 UTC) #7
Sergey Ulanov
On 2012/07/18 23:06:17, Wez wrote: > sergeyu: Can you please review? looking now
8 years, 5 months ago (2012-07-19 17:22:56 UTC) #8
Sergey Ulanov
LGTM, but see my nits. http://codereview.chromium.org/10785041/diff/9001/remoting/client/plugin/pepper_view.cc File remoting/client/plugin/pepper_view.cc (right): http://codereview.chromium.org/10785041/diff/9001/remoting/client/plugin/pepper_view.cc#newcode171 remoting/client/plugin/pepper_view.cc:171: view_scale_ = view_dev.GetDeviceScale(); nit: ...
8 years, 5 months ago (2012-07-19 17:50:23 UTC) #9
Wez
http://codereview.chromium.org/10785041/diff/9001/remoting/client/plugin/pepper_view.cc File remoting/client/plugin/pepper_view.cc (right): http://codereview.chromium.org/10785041/diff/9001/remoting/client/plugin/pepper_view.cc#newcode171 remoting/client/plugin/pepper_view.cc:171: view_scale_ = view_dev.GetDeviceScale(); On 2012/07/19 17:50:23, sergeyu wrote: > ...
8 years, 5 months ago (2012-07-20 00:01:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/10785041/14001
8 years, 5 months ago (2012-07-23 21:44:53 UTC) #11
commit-bot: I haz the power
Failed to apply patch for remoting/client/plugin/pepper_view.cc: While running patch -p1 --forward --force; patching file remoting/client/plugin/pepper_view.cc ...
8 years, 5 months ago (2012-07-23 21:44:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/10785041/13002
8 years, 5 months ago (2012-07-23 23:12:55 UTC) #13
commit-bot: I haz the power
8 years, 5 months ago (2012-07-24 00:42:06 UTC) #14
Change committed as 148012

Powered by Google App Engine
This is Rietveld 408576698