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

Issue 2196493002: [Chromoting] Unit Tests for GlRenderer (Closed)

Created:
4 years, 4 months ago by Yuwei
Modified:
4 years, 4 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, 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] Unit Tests for GlRenderer This CL separates the OpenGL drawing logic from GlRenderer and adds unit tests for delegate callback and redraw scheduling logic. BUG=385924 Committed: https://crrev.com/e4c0f786357df0eea6b5688b40d6a088aef28580 Cr-Commit-Position: refs/heads/master@{#411152}

Patch Set 1 : Add unittest #

Total comments: 7

Patch Set 2 : Try using default GL on desktop platforms #

Patch Set 3 : Remove RendererCore #

Patch Set 4 : Add TODO #

Patch Set 5 : Maybe use libANGLE in unittests for all platforms #

Patch Set 6 : Fix negative int->uint32_t conversion #

Patch Set 7 : Only test in Linux with default OpenGL #

Patch Set 8 : Only define opengl_renderer in supported platforms #

Patch Set 9 : Make RequestRender private and declare the test as friend #

Total comments: 1

Patch Set 10 : Revert GlDesktop changes #

Patch Set 11 : Merge ToT #

Patch Set 12 : Merge ToT #

Total comments: 12

Patch Set 13 : Reviewer's Feedback #

Patch Set 14 : Always include khronos header #

Patch Set 15 : Don't draw when canvas is not set #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -23 lines) Patch
M remoting/client/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +25 lines, -13 lines 0 comments Download
M remoting/client/gl_cursor.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M remoting/client/gl_cursor_feedback_texture.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M remoting/client/gl_render_layer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/client/gl_renderer.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M remoting/client/gl_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +7 lines, -5 lines 0 comments Download
A remoting/client/gl_renderer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +220 lines, -0 lines 0 comments Download
M remoting/client/sys_opengl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +10 lines, -4 lines 0 comments Download

Messages

Total messages: 62 (45 generated)
Yuwei
ptal https://codereview.chromium.org/2196493002/diff/20001/remoting/client/gl_desktop.h File remoting/client/gl_desktop.h (right): https://codereview.chromium.org/2196493002/diff/20001/remoting/client/gl_desktop.h#newcode29 remoting/client/gl_desktop.h:29: void SetVideoFrame(const webrtc::DesktopFrame& frame); Changed this to const ...
4 years, 4 months ago (2016-07-29 00:07:02 UTC) #5
Sergey Ulanov
https://codereview.webrtc.org/2196493002/diff/20001/remoting/client/BUILD.gn File remoting/client/BUILD.gn (right): https://codereview.webrtc.org/2196493002/diff/20001/remoting/client/BUILD.gn#newcode90 remoting/client/BUILD.gn:90: "gl_renderer.cc", This would meant that gl_renderer.cc is compiled twice, ...
4 years, 4 months ago (2016-08-01 21:33:05 UTC) #8
Yuwei
https://codereview.chromium.org/2196493002/diff/20001/remoting/client/gl_renderer_core.h File remoting/client/gl_renderer_core.h (right): https://codereview.chromium.org/2196493002/diff/20001/remoting/client/gl_renderer_core.h#newcode22 remoting/client/gl_renderer_core.h:22: class GlRendererCore { On 2016/08/01 21:33:05, Sergey Ulanov wrote: ...
4 years, 4 months ago (2016-08-01 22:04:40 UTC) #9
Sergey Ulanov
On 2016/08/01 22:04:40, Yuwei wrote: > https://codereview.chromium.org/2196493002/diff/20001/remoting/client/gl_renderer_core.h > File remoting/client/gl_renderer_core.h (right): > > https://codereview.chromium.org/2196493002/diff/20001/remoting/client/gl_renderer_core.h#newcode22 > ...
4 years, 4 months ago (2016-08-01 23:46:01 UTC) #12
Yuwei
PTAL On 2016/08/01 23:46:01, Sergey Ulanov wrote: > On 2016/08/01 22:04:40, Yuwei wrote: > > ...
4 years, 4 months ago (2016-08-02 00:13:10 UTC) #17
Sergey Ulanov
If you just make the unittests run on linux that's already great. I wouldn't worry ...
4 years, 4 months ago (2016-08-02 00:28:15 UTC) #18
Yuwei
On 2016/08/02 00:28:15, Sergey Ulanov wrote: > If you just make the unittests run on ...
4 years, 4 months ago (2016-08-02 00:52:30 UTC) #21
Yuwei
On 2016/08/02 00:52:30, Yuwei wrote: > On 2016/08/02 00:28:15, Sergey Ulanov wrote: > > If ...
4 years, 4 months ago (2016-08-02 03:25:16 UTC) #28
Yuwei
On 2016/08/02 00:28:15, Sergey Ulanov wrote: > If you just make the unittests run on ...
4 years, 4 months ago (2016-08-02 18:10:54 UTC) #35
Yuwei
https://codereview.chromium.org/2196493002/diff/200001/remoting/client/gl_desktop.h File remoting/client/gl_desktop.h (right): https://codereview.chromium.org/2196493002/diff/200001/remoting/client/gl_desktop.h#newcode29 remoting/client/gl_desktop.h:29: void SetVideoFrame(const webrtc::DesktopFrame& frame); I'll hold this change for ...
4 years, 4 months ago (2016-08-03 00:36:48 UTC) #40
Yuwei
Any update for this CL?
4 years, 4 months ago (2016-08-09 00:53:53 UTC) #45
Sergey Ulanov
https://codereview.chromium.org/2196493002/diff/260001/remoting/client/BUILD.gn File remoting/client/BUILD.gn (right): https://codereview.chromium.org/2196493002/diff/260001/remoting/client/BUILD.gn#newcode115 remoting/client/BUILD.gn:115: if (is_linux) { Can we run this test on ...
4 years, 4 months ago (2016-08-10 15:35:06 UTC) #46
Sergey Ulanov
lgtm when my comments are addressed
4 years, 4 months ago (2016-08-10 15:35:22 UTC) #47
Yuwei
https://codereview.chromium.org/2196493002/diff/260001/remoting/client/BUILD.gn File remoting/client/BUILD.gn (right): https://codereview.chromium.org/2196493002/diff/260001/remoting/client/BUILD.gn#newcode115 remoting/client/BUILD.gn:115: if (is_linux) { On 2016/08/10 15:35:06, Sergey Ulanov wrote: ...
4 years, 4 months ago (2016-08-10 21:31:01 UTC) #56
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/2196493002/320001
4 years, 4 months ago (2016-08-10 21:34:29 UTC) #59
commit-bot: I haz the power
Committed patchset #15 (id:320001)
4 years, 4 months ago (2016-08-10 21:41:22 UTC) #60
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 21:42:56 UTC) #62
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/e4c0f786357df0eea6b5688b40d6a088aef28580
Cr-Commit-Position: refs/heads/master@{#411152}

Powered by Google App Engine
This is Rietveld 408576698