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

Issue 2161323002: cc: Make LayerTreeHostImpl unittests use a delegating output surface. (Closed)

Created:
4 years, 5 months ago by danakj
Modified:
4 years, 5 months ago
Reviewers:
enne (OOO), vmpstr, piman
CC:
cc-bugs_chromium.org, chromium-reviews, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Make LayerTreeHostImpl unittests use a delegating output surface. We are removing all cases of a direct output surface in LayerTreeHostImpl and the only remaining cases are in unit tests. This coveres the LayerTreeHostImpl test suite. TBR=piman R=enne, vmpstr BUG=606056 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel Committed: https://crrev.com/f33ceec40004dec326b09ad2f631310aa0c5a594 Cr-Commit-Position: refs/heads/master@{#406647}

Patch Set 1 #

Total comments: 19

Patch Set 2 : display-lthi-tests: . #

Total comments: 4

Patch Set 3 : display-lthi-tests: software-test #

Patch Set 4 : display-lthi-tests: . #

Patch Set 5 : display-lthi-tests: . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -462 lines) Patch
M cc/output/gl_renderer_unittest.cc View 1 13 chunks +128 lines, -48 lines 0 comments Download
M cc/output/renderer_unittest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M cc/output/shader_unittest.cc View 1 2 chunks +11 lines, -10 lines 0 comments Download
M cc/output/software_renderer_unittest.cc View 1 2 2 chunks +57 lines, -0 lines 0 comments Download
M cc/test/fake_output_surface.h View 1 4 chunks +10 lines, -0 lines 0 comments Download
M cc/test/fake_output_surface.cc View 1 1 chunk +21 lines, -14 lines 0 comments Download
M cc/test/layer_tree_pixel_test.cc View 1 2 3 4 2 chunks +12 lines, -28 lines 0 comments Download
M cc/test/test_context_provider.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M cc/test/test_context_provider.cc View 1 2 3 2 chunks +16 lines, -4 lines 0 comments Download
M cc/test/test_delegating_output_surface.h View 3 chunks +16 lines, -10 lines 0 comments Download
M cc/test/test_delegating_output_surface.cc View 1 4 chunks +47 lines, -12 lines 0 comments Download
M cc/test/test_gles2_interface.h View 1 2 chunks +8 lines, -3 lines 0 comments Download
M cc/test/test_gles2_interface.cc View 1 2 chunks +8 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 50 chunks +75 lines, -302 lines 0 comments Download
M content/test/layouttest_support.cc View 1 2 3 4 2 chunks +4 lines, -24 lines 0 comments Download

Messages

Total messages: 37 (23 generated)
danakj
Oh ya I deleted some tests that should maybe become Display or GLRenderer unit tests.
4 years, 5 months ago (2016-07-19 22:46:41 UTC) #2
enne (OOO)
https://codereview.chromium.org/2161323002/diff/1/cc/test/fake_output_surface.cc File cc/test/fake_output_surface.cc (right): https://codereview.chromium.org/2161323002/diff/1/cc/test/fake_output_surface.cc#newcode57 cc/test/fake_output_surface.cc:57: last_swap_rect_ = gfx::Rect(); This is really empty and not ...
4 years, 5 months ago (2016-07-19 23:00:50 UTC) #7
vmpstr
https://codereview.chromium.org/2161323002/diff/1/cc/test/fake_output_surface.cc File cc/test/fake_output_surface.cc (right): https://codereview.chromium.org/2161323002/diff/1/cc/test/fake_output_surface.cc#newcode49 cc/test/fake_output_surface.cc:49: last_sent_frame_ = base::MakeUnique<CompositorFrame>(std::move(frame)); nit: maybe just last_sent_frame_.reset(new CompositorFrame(std::move(frame))); Also, ...
4 years, 5 months ago (2016-07-19 23:27:02 UTC) #8
danakj
https://codereview.chromium.org/2161323002/diff/1/cc/test/fake_output_surface.cc File cc/test/fake_output_surface.cc (right): https://codereview.chromium.org/2161323002/diff/1/cc/test/fake_output_surface.cc#newcode49 cc/test/fake_output_surface.cc:49: last_sent_frame_ = base::MakeUnique<CompositorFrame>(std::move(frame)); On 2016/07/19 23:27:01, vmpstr wrote: > ...
4 years, 5 months ago (2016-07-20 01:03:25 UTC) #9
danakj
+piman for content/test/
4 years, 5 months ago (2016-07-20 01:04:41 UTC) #12
vmpstr
lgtm https://codereview.chromium.org/2161323002/diff/20001/cc/test/fake_output_surface.h File cc/test/fake_output_surface.h (right): https://codereview.chromium.org/2161323002/diff/20001/cc/test/fake_output_surface.h#newcode50 cc/test/fake_output_surface.h:50: return base::WrapUnique( nit: MakeUnique here? Or keep it ...
4 years, 5 months ago (2016-07-20 01:11:22 UTC) #14
danakj
OK I added a SoftwareRenderer test too PTAL.
4 years, 5 months ago (2016-07-20 01:24:51 UTC) #20
enne (OOO)
lgtm
4 years, 5 months ago (2016-07-20 18:11:22 UTC) #24
danakj
https://codereview.chromium.org/2161323002/diff/20001/cc/test/fake_output_surface.h File cc/test/fake_output_surface.h (right): https://codereview.chromium.org/2161323002/diff/20001/cc/test/fake_output_surface.h#newcode50 cc/test/fake_output_surface.h:50: return base::WrapUnique( On 2016/07/20 01:11:22, vmpstr wrote: > nit: ...
4 years, 5 months ago (2016-07-20 18:57:42 UTC) #25
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/2161323002/60001
4 years, 5 months ago (2016-07-20 19:00:05 UTC) #28
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/2161323002/80001
4 years, 5 months ago (2016-07-20 19:03:16 UTC) #31
danakj
TBR=piman for the layouttest_support change, just moving some plumbing around.
4 years, 5 months ago (2016-07-20 19:05:02 UTC) #32
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-20 20:05:04 UTC) #35
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 20:08:24 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f33ceec40004dec326b09ad2f631310aa0c5a594
Cr-Commit-Position: refs/heads/master@{#406647}

Powered by Google App Engine
This is Rietveld 408576698