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

Issue 368403003: Use RenderPass to create DrawQuad in unittests (Closed)

Created:
6 years, 5 months ago by weiliangc
Modified:
6 years, 5 months ago
Reviewers:
danakj
CC:
chromium-reviews, darin-cc_chromium.org, cc-bugs_chromium.org, jam, enne (OOO), piman, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@layerrawptrDQ
Project:
chromium
Visibility:
Public.

Description

Use RenderPass to create DrawQuad in unittests Instead of calling DQ::Create() function and then push it into RenderPass in unittest, use RenderPass's function call to create and append a DQ while only pass out a raw pointer instead of ownership. Follow CL 369623002. BUG=344962 TEST=cc_unittests, content_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282179

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix trybot failure #

Patch Set 4 : actually fix error this time #

Total comments: 10

Patch Set 5 : address review comments #

Total comments: 1

Patch Set 6 : rebase #

Patch Set 7 : review comment addressed #

Total comments: 4

Patch Set 8 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+668 lines, -683 lines) Patch
M cc/layers/delegated_frame_provider_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/output/overlay_unittest.cc View 15 chunks +95 lines, -82 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 2 3 4 69 chunks +321 lines, -372 lines 0 comments Download
M cc/output/software_renderer_unittest.cc View 5 chunks +20 lines, -20 lines 0 comments Download
M cc/quads/render_pass.h View 1 2 3 4 5 6 3 chunks +16 lines, -0 lines 0 comments Download
M cc/quads/render_pass.cc View 1 2 3 4 5 6 7 2 chunks +65 lines, -0 lines 0 comments Download
M cc/quads/render_pass_unittest.cc View 7 chunks +16 lines, -25 lines 0 comments Download
M cc/surfaces/surface_aggregator_unittest.cc View 1 2 3 4 5 5 chunks +9 lines, -14 lines 0 comments Download
M cc/surfaces/surfaces_pixeltest.cc View 6 chunks +20 lines, -24 lines 0 comments Download
M cc/test/render_pass_test_common.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/test/render_pass_test_common.cc View 13 chunks +23 lines, -34 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_delegated.cc View 1 2 3 4 6 chunks +10 lines, -10 lines 0 comments Download
M content/common/cc_messages_perftest.cc View 5 chunks +15 lines, -20 lines 0 comments Download
M content/common/cc_messages_unittest.cc View 1 2 3 4 14 chunks +56 lines, -78 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
weiliangc
overall: danakj cc_message_perftest: piman
6 years, 5 months ago (2014-07-07 22:07:36 UTC) #1
danakj
https://codereview.chromium.org/368403003/diff/50001/cc/output/renderer_pixeltest.cc File cc/output/renderer_pixeltest.cc (right): https://codereview.chromium.org/368403003/diff/50001/cc/output/renderer_pixeltest.cc#newcode399 cc/output/renderer_pixeltest.cc:399: RenderPass* render_pass, nit: can you make render_pass the last ...
6 years, 5 months ago (2014-07-07 22:30:15 UTC) #2
piman
danakj@ has OWNERs super-powers, so her approval will be enough. On Mon, Jul 7, 2014 ...
6 years, 5 months ago (2014-07-07 22:57:42 UTC) #3
weiliangc
Address review comments https://codereview.chromium.org/368403003/diff/50001/cc/output/renderer_pixeltest.cc File cc/output/renderer_pixeltest.cc (right): https://codereview.chromium.org/368403003/diff/50001/cc/output/renderer_pixeltest.cc#newcode399 cc/output/renderer_pixeltest.cc:399: RenderPass* render_pass, On 2014/07/07 22:30:15, danakj ...
6 years, 5 months ago (2014-07-08 21:54:38 UTC) #4
danakj
Can the draw quad Copy methods go away or are they still used somewhere? https://codereview.chromium.org/368403003/diff/90001/cc/quads/render_pass.cc ...
6 years, 5 months ago (2014-07-09 17:12:09 UTC) #5
weiliangc
On 2014/07/09 17:12:09, danakj wrote: > Can the draw quad Copy methods go away or ...
6 years, 5 months ago (2014-07-09 17:55:04 UTC) #6
danakj
On 2014/07/09 17:55:04, weiliangc wrote: > On 2014/07/09 17:12:09, danakj wrote: > > Can the ...
6 years, 5 months ago (2014-07-09 17:55:51 UTC) #7
danakj
LGTM https://codereview.chromium.org/368403003/diff/130001/cc/quads/render_pass.cc File cc/quads/render_pass.cc (right): https://codereview.chromium.org/368403003/diff/130001/cc/quads/render_pass.cc#newcode202 cc/quads/render_pass.cc:202: case DrawQuad::CHECKERBOARD: { don't need the {}'s for ...
6 years, 5 months ago (2014-07-09 17:59:14 UTC) #8
weiliangc
https://codereview.chromium.org/368403003/diff/130001/cc/quads/render_pass.cc File cc/quads/render_pass.cc (right): https://codereview.chromium.org/368403003/diff/130001/cc/quads/render_pass.cc#newcode202 cc/quads/render_pass.cc:202: case DrawQuad::CHECKERBOARD: { On 2014/07/09 17:59:14, danakj wrote: > ...
6 years, 5 months ago (2014-07-09 20:59:09 UTC) #9
weiliangc
The CQ bit was checked by weiliangc@chromium.org
6 years, 5 months ago (2014-07-09 20:59:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/weiliangc@chromium.org/368403003/150001
6 years, 5 months ago (2014-07-09 21:01:17 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 00:00:05 UTC) #12
Message was sent while issue was closed.
Change committed as 282179

Powered by Google App Engine
This is Rietveld 408576698