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

Issue 2046563005: Add ArrayTraits<CArray<T>> utility template (Closed)

Created:
4 years, 6 months ago by Fady Samuel
Modified:
4 years, 6 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tdresser+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, piman+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ArrayTraits<CArray<T>> utility template This CL adds a utility ArrayTraits class to read and write from and into a c array from StructTraits. This CL also deletes duplicate code across various traits. BUG=611802 TBR=ben@chromium.org, tsepez@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/ea3c906a94710cbc68483e9c5d5cee88f5b1569a Cr-Commit-Position: refs/heads/master@{#398634}

Patch Set 1 #

Patch Set 2 : Simplify Bitmap #

Patch Set 3 : Rebase against SkImageFilter CL #

Total comments: 4

Patch Set 4 : Addressed Yuzhu's comments #

Patch Set 5 : Rebased #

Total comments: 1

Patch Set 6 : Remove unnecessary constructor #

Total comments: 1

Patch Set 7 : Addressed Yuzhu's comment #

Total comments: 4

Patch Set 8 : Addressed tsepez's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -168 lines) Patch
M gpu/ipc/common/mailbox_struct_traits.h View 1 chunk +1 line, -15 lines 0 comments Download
M gpu/ipc/common/mailbox_struct_traits.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -35 lines 0 comments Download
M mojo/mojo_public.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/cpp/bindings/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A mojo/public/cpp/bindings/array_traits_carray.h View 1 2 3 4 5 6 1 chunk +53 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/serialization.h View 1 chunk +1 line, -0 lines 0 comments Download
M skia/public/interfaces/bitmap_skbitmap_struct_traits.h View 1 1 chunk +1 line, -16 lines 0 comments Download
M skia/public/interfaces/bitmap_skbitmap_struct_traits.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -39 lines 0 comments Download
M ui/events/mojo/latency_info_struct_traits.h View 1 chunk +1 line, -18 lines 0 comments Download
M ui/events/mojo/latency_info_struct_traits.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -45 lines 0 comments Download

Messages

Total messages: 35 (16 generated)
Fady Samuel
4 years, 6 months ago (2016-06-07 21:33:34 UTC) #4
yzshen1
Thanks! Very glad to see this change. https://codereview.chromium.org/2046563005/diff/40001/mojo/public/cpp/bindings/array_traits_carray.h File mojo/public/cpp/bindings/array_traits_carray.h (right): https://codereview.chromium.org/2046563005/diff/40001/mojo/public/cpp/bindings/array_traits_carray.h#newcode8 mojo/public/cpp/bindings/array_traits_carray.h:8: #include <vector> ...
4 years, 6 months ago (2016-06-07 22:29:29 UTC) #5
Fady Samuel
PTAL Yuzhu! Once Yuzhu, is happy +ben@ for everything else! Thanks! https://codereview.chromium.org/2046563005/diff/40001/mojo/public/cpp/bindings/array_traits_carray.h File mojo/public/cpp/bindings/array_traits_carray.h (right): ...
4 years, 6 months ago (2016-06-08 00:50:06 UTC) #7
Fady Samuel
PTAL https://codereview.chromium.org/2046563005/diff/80001/mojo/public/cpp/bindings/array_traits_carray.h File mojo/public/cpp/bindings/array_traits_carray.h (right): https://codereview.chromium.org/2046563005/diff/80001/mojo/public/cpp/bindings/array_traits_carray.h#newcode28 mojo/public/cpp/bindings/array_traits_carray.h:28: static bool IsNull(const CArray<T>& input) { return !input.data; ...
4 years, 6 months ago (2016-06-08 00:51:20 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046563005/80001
4 years, 6 months ago (2016-06-08 01:38:32 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-08 02:54:43 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046563005/100001
4 years, 6 months ago (2016-06-08 15:01:08 UTC) #14
yzshen1
https://codereview.chromium.org/2046563005/diff/100001/mojo/public/cpp/bindings/array_traits_carray.h File mojo/public/cpp/bindings/array_traits_carray.h (right): https://codereview.chromium.org/2046563005/diff/100001/mojo/public/cpp/bindings/array_traits_carray.h#newcode26 mojo/public/cpp/bindings/array_traits_carray.h:26: static bool IsNull(const CArray<T>& input) { return !input.data; } ...
4 years, 6 months ago (2016-06-08 16:09:17 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-08 16:23:56 UTC) #17
Fady Samuel
PTAL Yuzhu!
4 years, 6 months ago (2016-06-08 16:49:23 UTC) #18
yzshen1
lgtm
4 years, 6 months ago (2016-06-08 16:55:21 UTC) #19
Fady Samuel
Ben, I'm going to TBR you. Please let me know if you have any concerns ...
4 years, 6 months ago (2016-06-08 17:23:05 UTC) #20
Fady Samuel
+tsepez@ TBR'ing you too since this touches traits.
4 years, 6 months ago (2016-06-08 17:23:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046563005/120001
4 years, 6 months ago (2016-06-08 17:24:23 UTC) #25
Tom Sepez
lgtm https://codereview.chromium.org/2046563005/diff/120001/gpu/ipc/common/mailbox_struct_traits.cc File gpu/ipc/common/mailbox_struct_traits.cc (right): https://codereview.chromium.org/2046563005/diff/120001/gpu/ipc/common/mailbox_struct_traits.cc#newcode12 gpu/ipc/common/mailbox_struct_traits.cc:12: MailboxName mailbox_name = {GL_MAILBOX_SIZE_CHROMIUM, nit: can this be ...
4 years, 6 months ago (2016-06-08 17:38:47 UTC) #26
Fady Samuel
Thanks! That was a nice cleanup! CQ'ing! https://codereview.chromium.org/2046563005/diff/120001/gpu/ipc/common/mailbox_struct_traits.cc File gpu/ipc/common/mailbox_struct_traits.cc (right): https://codereview.chromium.org/2046563005/diff/120001/gpu/ipc/common/mailbox_struct_traits.cc#newcode12 gpu/ipc/common/mailbox_struct_traits.cc:12: MailboxName mailbox_name ...
4 years, 6 months ago (2016-06-08 17:48:03 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046563005/140001
4 years, 6 months ago (2016-06-08 17:48:37 UTC) #31
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 6 months ago (2016-06-08 19:16:08 UTC) #33
commit-bot: I haz the power
4 years, 6 months ago (2016-06-08 19:17:41 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ea3c906a94710cbc68483e9c5d5cee88f5b1569a
Cr-Commit-Position: refs/heads/master@{#398634}

Powered by Google App Engine
This is Rietveld 408576698