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

Issue 8985007: Refactoring of the client-side input pipeline and scaling dimension management. (Closed)

Created:
9 years ago by Wez
Modified:
9 years ago
Reviewers:
Sergey Ulanov, Jamie
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Refactoring of the client-side input pipeline and scaling dimension management. The main changes are: * Express key-release, mouse coordinate scaling and clamping as InputStubs. * KeyEventTracker handles key release. * MouseInputFilter handles mouse scaling & clamping. * PepperInputHandler converts Pepper events to InputStub events. * Replace scaling ratios with host and view dimensions. This resulted in some related changes * The DecoderVp8 enforces a <=1:1 output-size before converting the frame. * The setScaleToFit() API now has no effect. * ChromotingView has become a pure interface again. Things this CL is currently missing: * Unit-tests for the new components. Future work: * Move the non-Pepper-specific input pipeline components to ChromotingClient. * Rework the decode / convert / scale / render pipeline. BUG=93552 TEST=remoting_unittests, and manual testing. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=115511

Patch Set 1 #

Total comments: 57

Patch Set 2 : Address comments. #

Patch Set 3 : Rebase. #

Total comments: 1

Patch Set 4 : Fix merge issues. #

Patch Set 5 : Include SkTypes.h before SkSize.h to fix win build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+430 lines, -792 lines) Patch
M remoting/base/decoder.h View 1 2 chunks +6 lines, -8 lines 0 comments Download
M remoting/base/decoder_vp8.h View 1 2 chunks +3 lines, -5 lines 0 comments Download
M remoting/base/decoder_vp8.cc View 1 2 3 5 chunks +24 lines, -32 lines 0 comments Download
M remoting/base/util.h View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M remoting/base/util.cc View 1 2 4 chunks +26 lines, -24 lines 0 comments Download
M remoting/client/chromoting_client.h View 3 chunks +0 lines, -3 lines 0 comments Download
M remoting/client/chromoting_client.cc View 3 chunks +0 lines, -6 lines 0 comments Download
M remoting/client/chromoting_view.h View 3 chunks +2 lines, -24 lines 0 comments Download
D remoting/client/chromoting_view.cc View 1 chunk +0 lines, -26 lines 0 comments Download
D remoting/client/input_handler.h View 1 1 chunk +0 lines, -52 lines 0 comments Download
D remoting/client/input_handler.cc View 1 chunk +0 lines, -84 lines 0 comments Download
A remoting/client/mouse_input_filter.h View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
A remoting/client/mouse_input_filter.cc View 1 1 chunk +49 lines, -0 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.h View 1 2 chunks +6 lines, -11 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 8 chunks +37 lines, -109 lines 0 comments Download
M remoting/client/plugin/chromoting_scriptable_object.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/client/plugin/chromoting_scriptable_object.cc View 1 2 chunks +5 lines, -15 lines 0 comments Download
M remoting/client/plugin/pepper_input_handler.h View 1 1 chunk +10 lines, -20 lines 0 comments Download
M remoting/client/plugin/pepper_input_handler.cc View 1 1 chunk +83 lines, -72 lines 0 comments Download
M remoting/client/plugin/pepper_view.h View 1 5 chunks +16 lines, -12 lines 0 comments Download
M remoting/client/plugin/pepper_view.cc View 1 3 chunks +6 lines, -22 lines 0 comments Download
M remoting/client/plugin/pepper_view_proxy.h View 1 1 chunk +0 lines, -87 lines 0 comments Download
M remoting/client/plugin/pepper_view_proxy.cc View 1 1 chunk +0 lines, -154 lines 0 comments Download
M remoting/client/rectangle_update_decoder.h View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M remoting/client/rectangle_update_decoder.cc View 1 2 2 chunks +7 lines, -9 lines 0 comments Download
M remoting/host/client_session.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
A remoting/protocol/key_event_tracker.h View 1 1 chunk +43 lines, -0 lines 0 comments Download
A remoting/protocol/key_event_tracker.cc View 1 1 chunk +48 lines, -0 lines 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 3 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Wez
sergeyu: Please review. :) jamiewalch: FYI WRT the input pipeline layout.
9 years ago (2011-12-17 00:42:02 UTC) #1
Sergey Ulanov
http://codereview.chromium.org/8985007/diff/1/remoting/base/decoder_vp8.cc File remoting/base/decoder_vp8.cc (right): http://codereview.chromium.org/8985007/diff/1/remoting/base/decoder_vp8.cc#newcode24 remoting/base/decoder_vp8.cc:24: output_size_.setEmpty(); Can we initialize output_size_ in the same way ...
9 years ago (2011-12-20 00:05:34 UTC) #2
Jamie
http://codereview.chromium.org/8985007/diff/1/remoting/base/decoder_vp8.cc File remoting/base/decoder_vp8.cc (right): http://codereview.chromium.org/8985007/diff/1/remoting/base/decoder_vp8.cc#newcode154 remoting/base/decoder_vp8.cc:154: !output_size_.equals(last_image_->d_w, last_image_->d_h); This will change the behaviour if DoScaling ...
9 years ago (2011-12-20 00:51:56 UTC) #3
Wez
Thanks for catching all those issues; a fair bit has changed so PTAL. http://codereview.chromium.org/8985007/diff/1/remoting/base/decoder_vp8.cc File ...
9 years ago (2011-12-20 07:14:14 UTC) #4
Wez
sergeyu: Ping :)
9 years ago (2011-12-21 01:18:10 UTC) #5
Sergey Ulanov
Looks like there is a merge issue. Other than that LGTM http://codereview.chromium.org/8985007/diff/12001/remoting/base/decoder_vp8.cc File remoting/base/decoder_vp8.cc (right): ...
9 years ago (2011-12-21 02:38:19 UTC) #6
Wez
On 2011/12/21 02:38:19, sergeyu wrote: > Looks like there is a merge issue. Other than ...
9 years ago (2011-12-21 17:58:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/8985007/16071
9 years ago (2011-12-22 02:15:16 UTC) #8
commit-bot: I haz the power
9 years ago (2011-12-22 10:20:35 UTC) #9
Change committed as 115511

Powered by Google App Engine
This is Rietveld 408576698