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

Issue 393103003: Update Mojo surfaces type converters to use RP for generating DQ and SQS (Closed)

Created:
6 years, 5 months ago by weiliangc
Modified:
6 years, 5 months ago
Reviewers:
danakj, jamesr
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, enne (OOO), piman, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@publicDQ
Project:
chromium
Visibility:
Public.

Description

Update Mojo surfaces type converters to use RP for generating DQ and SQS In order for RenderPass to own allocation of DrawQuads and SharedQuadState, update surface type converter code in mojo so when convert to DrawQuad and SharedQuadState, function takes in pointer to RenderPass as parameter. Also in unittest, create RenderPass to deal with DrawQuad and SharedQuadState creation. Follows 398533002. BUG=344962 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284104

Patch Set 1 #

Total comments: 4

Patch Set 2 : rm isolated DQ and SQS ConvertTo function #

Patch Set 3 : rebase #

Total comments: 6

Patch Set 4 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -149 lines) Patch
M mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc View 1 2 4 chunks +78 lines, -72 lines 0 comments Download
M mojo/services/public/cpp/surfaces/surfaces_type_converters.h View 1 2 3 2 chunks +0 lines, -10 lines 0 comments Download
M mojo/services/public/cpp/surfaces/tests/surface_unittest.cc View 1 2 3 13 chunks +106 lines, -67 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
weiliangc
mojo: jamesr overall: danakj
6 years, 5 months ago (2014-07-15 22:00:59 UTC) #1
danakj
Use full words instead of acronyms in your patch description. Maybe you can get away ...
6 years, 5 months ago (2014-07-15 22:02:34 UTC) #2
danakj
LGTM https://codereview.chromium.org/393103003/diff/1/mojo/services/public/cpp/surfaces/surfaces_type_converters.h File mojo/services/public/cpp/surfaces/surfaces_type_converters.h (right): https://codereview.chromium.org/393103003/diff/1/mojo/services/public/cpp/surfaces/surfaces_type_converters.h#newcode54 mojo/services/public/cpp/surfaces/surfaces_type_converters.h:54: // TypeConverter for surfaces::Pass calls this explicitly. Also ...
6 years, 5 months ago (2014-07-15 22:05:52 UTC) #3
jamesr
https://codereview.chromium.org/393103003/diff/1/mojo/services/public/cpp/surfaces/surfaces_type_converters.h File mojo/services/public/cpp/surfaces/surfaces_type_converters.h (right): https://codereview.chromium.org/393103003/diff/1/mojo/services/public/cpp/surfaces/surfaces_type_converters.h#newcode54 mojo/services/public/cpp/surfaces/surfaces_type_converters.h:54: // TypeConverter for surfaces::Pass calls this explicitly. Also RenderPass ...
6 years, 5 months ago (2014-07-15 22:48:01 UTC) #4
weiliangc
https://codereview.chromium.org/393103003/diff/1/mojo/services/public/cpp/surfaces/surfaces_type_converters.h File mojo/services/public/cpp/surfaces/surfaces_type_converters.h (right): https://codereview.chromium.org/393103003/diff/1/mojo/services/public/cpp/surfaces/surfaces_type_converters.h#newcode54 mojo/services/public/cpp/surfaces/surfaces_type_converters.h:54: // TypeConverter for surfaces::Pass calls this explicitly. Also RenderPass ...
6 years, 5 months ago (2014-07-15 22:56:40 UTC) #5
jamesr
On 2014/07/15 22:56:40, weiliangc wrote: > https://codereview.chromium.org/393103003/diff/1/mojo/services/public/cpp/surfaces/surfaces_type_converters.h > File mojo/services/public/cpp/surfaces/surfaces_type_converters.h (right): > > https://codereview.chromium.org/393103003/diff/1/mojo/services/public/cpp/surfaces/surfaces_type_converters.h#newcode54 > ...
6 years, 5 months ago (2014-07-15 22:57:18 UTC) #6
jamesr
In other words, with these changes it doesn't make sense to talk about a DrawQuad ...
6 years, 5 months ago (2014-07-15 22:58:07 UTC) #7
weiliangc
On 2014/07/15 22:58:07, jamesr wrote: > In other words, with these changes it doesn't make ...
6 years, 5 months ago (2014-07-15 23:15:10 UTC) #8
jamesr
Thanks! On Jul 15, 2014 4:15 PM, <weiliangc@chromium.org> wrote: > On 2014/07/15 22:58:07, jamesr wrote: ...
6 years, 5 months ago (2014-07-15 23:21:31 UTC) #9
weiliangc
On 2014/07/15 23:21:31, jamesr wrote: > Thanks! > On Jul 15, 2014 4:15 PM, <mailto:weiliangc@chromium.org> ...
6 years, 5 months ago (2014-07-16 18:02:21 UTC) #10
jamesr
lgtm https://codereview.chromium.org/393103003/diff/40001/mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc File mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc (right): https://codereview.chromium.org/393103003/diff/40001/mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc#newcode81 mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc:81: texture_quad_state->vertex_opacity.storage().data(), unfortunately std::vector<>::data() is c++11 and not supported ...
6 years, 5 months ago (2014-07-17 20:25:25 UTC) #11
jamesr
https://codereview.chromium.org/393583003/ has the std::vector::data stuff. I thought that patch had landed already, but guess not? ...
6 years, 5 months ago (2014-07-17 20:52:23 UTC) #12
weiliangc
https://codereview.chromium.org/393103003/diff/40001/mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc File mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc (right): https://codereview.chromium.org/393103003/diff/40001/mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc#newcode81 mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc:81: texture_quad_state->vertex_opacity.storage().data(), On 2014/07/17 20:25:24, jamesr wrote: > unfortunately std::vector<>::data() ...
6 years, 5 months ago (2014-07-17 21:27:10 UTC) #13
jamesr
https://codereview.chromium.org/393103003/diff/40001/mojo/services/public/cpp/surfaces/tests/surface_unittest.cc File mojo/services/public/cpp/surfaces/tests/surface_unittest.cc (right): https://codereview.chromium.org/393103003/diff/40001/mojo/services/public/cpp/surfaces/tests/surface_unittest.cc#newcode191 mojo/services/public/cpp/surfaces/tests/surface_unittest.cc:191: pass->SetAll(pass_id, On 2014/07/17 21:27:10, weiliangc wrote: > If set ...
6 years, 5 months ago (2014-07-17 21:29:37 UTC) #14
weiliangc
The CQ bit was checked by weiliangc@chromium.org
6 years, 5 months ago (2014-07-18 14:14:51 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/weiliangc@chromium.org/393103003/50001
6 years, 5 months ago (2014-07-18 14:15:56 UTC) #16
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 15:53:44 UTC) #17
Message was sent while issue was closed.
Change committed as 284104

Powered by Google App Engine
This is Rietveld 408576698