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

Issue 2150833002: [Chromoting] Fallback to use software renderer if desktop image size is larger than GPU limitaiton (Closed)

Created:
4 years, 5 months ago by Hzj_jie
Modified:
4 years, 2 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, posciak+watch_chromium.org, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromoting] Fallback to use software renderer if desktop image size is larger than GPU limitation On some old or lowend hardwares, such as Pixel 1 (ChromeBook), the max texture their GPUs can process may smaller than a combination of several high resolution monitors. In this situation, GPU decoder will fail, and we will render a blank white screen. So this change adds a check of max texture size GPU (from OpenGL layer) supports. And if a desktop image is larger than this limitation, PepperVideoRenderer3D will fall back to PepperVideoRenderer2D to render following images. BUG=584388 Committed: https://crrev.com/103f52ed2f2d52af0554f6817ebef53e1b1eff4a Cr-Commit-Position: refs/heads/master@{#426019}

Patch Set 1 #

Total comments: 20

Patch Set 2 : Resolve review comments #

Patch Set 3 : Resolve review comments #

Total comments: 3

Patch Set 4 : Resolve review comments #

Patch Set 5 : Use scaled gl limitation #

Total comments: 12

Patch Set 6 : Resolve review comments #

Patch Set 7 : Resolve review comments #

Total comments: 11

Patch Set 8 : Resolve review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -1 line) Patch
M remoting/client/plugin/pepper_video_renderer_3d.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -0 lines 0 comments Download
M remoting/client/plugin/pepper_video_renderer_3d.cc View 1 2 3 4 5 6 7 5 chunks +44 lines, -1 line 0 comments Download

Messages

Total messages: 77 (57 generated)
Hzj_jie
4 years, 5 months ago (2016-07-14 02:16:38 UTC) #7
Sergey Ulanov
https://codereview.chromium.org/2150833002/diff/1/remoting/client/plugin/pepper_video_renderer_3d.cc File remoting/client/plugin/pepper_video_renderer_3d.cc (right): https://codereview.chromium.org/2150833002/diff/1/remoting/client/plugin/pepper_video_renderer_3d.cc#newcode227 remoting/client/plugin/pepper_video_renderer_3d.cc:227: use_fallback_renderer_ = Once we start using the fallback renderer ...
4 years, 5 months ago (2016-07-14 17:45:28 UTC) #8
Hzj_jie
https://codereview.chromium.org/2150833002/diff/1/remoting/client/plugin/pepper_video_renderer_3d.cc File remoting/client/plugin/pepper_video_renderer_3d.cc (right): https://codereview.chromium.org/2150833002/diff/1/remoting/client/plugin/pepper_video_renderer_3d.cc#newcode227 remoting/client/plugin/pepper_video_renderer_3d.cc:227: use_fallback_renderer_ = On 2016/07/14 17:45:28, Sergey Ulanov wrote: > ...
4 years, 5 months ago (2016-07-15 02:30:50 UTC) #15
Sergey Ulanov
https://codereview.chromium.org/2150833002/diff/1/remoting/client/plugin/pepper_video_renderer_3d.cc File remoting/client/plugin/pepper_video_renderer_3d.cc (right): https://codereview.chromium.org/2150833002/diff/1/remoting/client/plugin/pepper_video_renderer_3d.cc#newcode228 remoting/client/plugin/pepper_video_renderer_3d.cc:228: gl_max_texture_size_ < packet->format().screen_width() || On 2016/07/15 02:30:50, Hzj_jie wrote: ...
4 years, 5 months ago (2016-07-15 23:33:19 UTC) #18
Sergey Ulanov
Also please update the description - this CL no longer touches DesktopSessionAgent
4 years, 5 months ago (2016-07-15 23:34:21 UTC) #19
Sergey Ulanov
https://codereview.chromium.org/2150833002/diff/40001/remoting/client/plugin/pepper_video_renderer_3d.cc File remoting/client/plugin/pepper_video_renderer_3d.cc (right): https://codereview.chromium.org/2150833002/diff/40001/remoting/client/plugin/pepper_video_renderer_3d.cc#newcode231 remoting/client/plugin/pepper_video_renderer_3d.cc:231: packet->format().screen_height() > gl_max_texture_size_; On 2016/07/15 02:30:50, Hzj_jie wrote: > ...
4 years, 5 months ago (2016-07-15 23:39:56 UTC) #20
Hzj_jie
https://codereview.chromium.org/2150833002/diff/1/remoting/client/plugin/pepper_video_renderer_3d.cc File remoting/client/plugin/pepper_video_renderer_3d.cc (right): https://codereview.chromium.org/2150833002/diff/1/remoting/client/plugin/pepper_video_renderer_3d.cc#newcode228 remoting/client/plugin/pepper_video_renderer_3d.cc:228: gl_max_texture_size_ < packet->format().screen_width() || On 2016/07/15 23:33:18, Sergey Ulanov ...
4 years, 5 months ago (2016-07-16 01:19:22 UTC) #26
Hzj_jie
As discussed in the mail thread, we have one more issue which needs to be ...
4 years, 5 months ago (2016-07-18 22:57:02 UTC) #33
Hzj_jie
Updated, this should be the correct solution.
4 years, 2 months ago (2016-10-11 22:21:53 UTC) #44
Hzj_jie
Restart the code review.
4 years, 2 months ago (2016-10-11 23:57:18 UTC) #46
Sergey Ulanov
https://codereview.chromium.org/2150833002/diff/140001/remoting/client/plugin/pepper_video_renderer_3d.cc File remoting/client/plugin/pepper_video_renderer_3d.cc (right): https://codereview.chromium.org/2150833002/diff/140001/remoting/client/plugin/pepper_video_renderer_3d.cc#newcode105 remoting/client/plugin/pepper_video_renderer_3d.cc:105: if (scale == 0) { scale is never expected ...
4 years, 2 months ago (2016-10-12 21:53:31 UTC) #47
Hzj_jie
https://codereview.chromium.org/2150833002/diff/140001/remoting/client/plugin/pepper_video_renderer_3d.cc File remoting/client/plugin/pepper_video_renderer_3d.cc (right): https://codereview.chromium.org/2150833002/diff/140001/remoting/client/plugin/pepper_video_renderer_3d.cc#newcode105 remoting/client/plugin/pepper_video_renderer_3d.cc:105: if (scale == 0) { On 2016/10/12 21:53:31, Sergey ...
4 years, 2 months ago (2016-10-12 23:42:46 UTC) #55
Hzj_jie
https://codereview.chromium.org/2150833002/diff/200001/remoting/client/plugin/pepper_video_renderer_3d.cc File remoting/client/plugin/pepper_video_renderer_3d.cc (right): https://codereview.chromium.org/2150833002/diff/200001/remoting/client/plugin/pepper_video_renderer_3d.cc#newcode239 remoting/client/plugin/pepper_video_renderer_3d.cc:239: packet->format().screen_height() > gl_limits_.texture_size)) { As we have talked offline, ...
4 years, 2 months ago (2016-10-17 18:49:57 UTC) #61
Sergey Ulanov
https://codereview.chromium.org/2150833002/diff/200001/remoting/client/plugin/pepper_video_renderer_3d.cc File remoting/client/plugin/pepper_video_renderer_3d.cc (right): https://codereview.chromium.org/2150833002/diff/200001/remoting/client/plugin/pepper_video_renderer_3d.cc#newcode105 remoting/client/plugin/pepper_video_renderer_3d.cc:105: DCHECK(scale > 0); nit: DCHECK_GT(scale, 0.0); https://codereview.chromium.org/2150833002/diff/200001/remoting/client/plugin/pepper_video_renderer_3d.cc#newcode106 remoting/client/plugin/pepper_video_renderer_3d.cc:106: view_size_.set(std::min<float>(ceilf(size.width() ...
4 years, 2 months ago (2016-10-17 20:02:45 UTC) #64
Hzj_jie
https://codereview.chromium.org/2150833002/diff/200001/remoting/client/plugin/pepper_video_renderer_3d.cc File remoting/client/plugin/pepper_video_renderer_3d.cc (right): https://codereview.chromium.org/2150833002/diff/200001/remoting/client/plugin/pepper_video_renderer_3d.cc#newcode105 remoting/client/plugin/pepper_video_renderer_3d.cc:105: DCHECK(scale > 0); On 2016/10/17 20:02:44, Sergey Ulanov wrote: ...
4 years, 2 months ago (2016-10-17 22:55:43 UTC) #69
Sergey Ulanov
lgtm https://codereview.chromium.org/2150833002/diff/200001/remoting/client/plugin/pepper_video_renderer_3d.cc File remoting/client/plugin/pepper_video_renderer_3d.cc (right): https://codereview.chromium.org/2150833002/diff/200001/remoting/client/plugin/pepper_video_renderer_3d.cc#newcode239 remoting/client/plugin/pepper_video_renderer_3d.cc:239: packet->format().screen_height() > gl_limits_.texture_size)) { On 2016/10/17 22:55:43, Hzj_jie ...
4 years, 2 months ago (2016-10-18 03:11:45 UTC) #70
Hzj_jie
https://chromiumcodereview.appspot.com/2150833002/diff/200001/remoting/client/plugin/pepper_video_renderer_3d.cc File remoting/client/plugin/pepper_video_renderer_3d.cc (right): https://chromiumcodereview.appspot.com/2150833002/diff/200001/remoting/client/plugin/pepper_video_renderer_3d.cc#newcode239 remoting/client/plugin/pepper_video_renderer_3d.cc:239: packet->format().screen_height() > gl_limits_.texture_size)) { On 2016/10/18 03:11:44, Sergey Ulanov ...
4 years, 2 months ago (2016-10-18 19:05:58 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2150833002/220001
4 years, 2 months ago (2016-10-18 19:06:36 UTC) #73
commit-bot: I haz the power
Committed patchset #8 (id:220001)
4 years, 2 months ago (2016-10-18 19:13:00 UTC) #75
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:02:10 UTC) #77
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/103f52ed2f2d52af0554f6817ebef53e1b1eff4a
Cr-Commit-Position: refs/heads/master@{#426019}

Powered by Google App Engine
This is Rietveld 408576698