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

Issue 1389133002: content: Use type-parameterized tests for GpuMemoryBuffer implementations. (Closed)

Created:
5 years, 2 months ago by reveman
Modified:
5 years, 2 months ago
Reviewers:
piman, dshwang, sky, spang
CC:
chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, inactive_dshwang_plz_cc_intel, jam, jbauman+watch_chromium.org, kalyank, ozone-reviews_chromium.org, piman+watch_chromium.org, sievers+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

content: Use type-parameterized tests for GpuMemoryBuffer implementations. This makes it easier to add type specific tests and cleans up a lot of code as a factory implementation is not longer needed for shared memory. BUG=538325 Committed: https://crrev.com/fb8c8e10d21c0f784084fd043c4179ff94457d9b Cr-Commit-Position: refs/heads/master@{#352930}

Patch Set 1 #

Total comments: 12

Patch Set 2 : fix android and mac #

Total comments: 2

Patch Set 3 : fix nits #

Patch Set 4 : some missing includes and fix mac typo #

Patch Set 5 : fix PERSISTENT_MAP typo #

Patch Set 6 : SurfaceTexture fix #

Total comments: 4

Patch Set 7 : add blankline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+868 lines, -788 lines) Patch
M content/browser/gpu/browser_gpu_memory_buffer_manager.h View 1 2 3 3 chunks +26 lines, -7 lines 0 comments Download
M content/browser/gpu/browser_gpu_memory_buffer_manager.cc View 9 chunks +69 lines, -84 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl.cc View 1 3 chunks +2 lines, -5 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h View 1 2 2 chunks +13 lines, -3 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc View 4 chunks +34 lines, -2 lines 0 comments Download
A content/common/gpu/client/gpu_memory_buffer_impl_io_surface_unittest.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.h View 1 2 2 chunks +12 lines, -2 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc View 1 2 3 chunks +35 lines, -1 line 0 comments Download
A content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap_unittest.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h View 2 chunks +13 lines, -3 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc View 6 chunks +36 lines, -13 lines 0 comments Download
A content/common/gpu/client/gpu_memory_buffer_impl_shared_memory_unittest.cc View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h View 1 2 3 chunks +15 lines, -3 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc View 1 2 3 4 5 3 chunks +38 lines, -5 lines 0 comments Download
A content/common/gpu/client/gpu_memory_buffer_impl_surface_texture_unittest.cc View 1 chunk +16 lines, -0 lines 0 comments Download
D content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc View 1 chunk +0 lines, -240 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory.h View 1 2 1 chunk +5 lines, -15 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory.cc View 1 2 2 chunks +11 lines, -25 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_io_surface.h View 1 2 3 3 chunks +9 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_io_surface.cc View 1 2 3 3 chunks +25 lines, -31 lines 0 comments Download
A content/common/gpu/gpu_memory_buffer_factory_io_surface_unittest.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.h View 3 chunks +4 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc View 2 chunks +5 lines, -32 lines 0 comments Download
A content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap_unittest.cc View 1 chunk +16 lines, -0 lines 0 comments Download
D content/common/gpu/gpu_memory_buffer_factory_shared_memory.h View 1 chunk +0 lines, -65 lines 0 comments Download
D content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc View 1 chunk +0 lines, -114 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_surface_texture.h View 1 2 3 3 chunks +6 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_surface_texture.cc View 1 2 3 4 2 chunks +7 lines, -18 lines 0 comments Download
A content/common/gpu/gpu_memory_buffer_factory_surface_texture_unittest.cc View 1 chunk +16 lines, -0 lines 0 comments Download
D content/common/gpu/gpu_memory_buffer_factory_unittest.cc View 1 chunk +0 lines, -58 lines 0 comments Download
M content/content_common.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 4 chunks +14 lines, -2 lines 0 comments Download
M content/gpu/gpu_child_thread.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 2 chunks +2 lines, -9 lines 0 comments Download
M content/gpu/gpu_main.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M content/gpu/in_process_gpu_thread.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
A content/test/gpu_memory_buffer_factory_test_template.h View 1 chunk +55 lines, -0 lines 0 comments Download
A content/test/gpu_memory_buffer_impl_test_template.h View 1 2 1 chunk +225 lines, -0 lines 0 comments Download
M ui/gfx/OWNERS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/buffer_format_util.h View 3 chunks +17 lines, -8 lines 0 comments Download
M ui/gfx/buffer_format_util.cc View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download
M ui/ozone/common/stub_client_native_pixmap_factory.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ui/ozone/platform/drm/common/client_native_pixmap_factory_gbm.cc View 1 2 1 chunk +15 lines, -13 lines 0 comments Download
M ui/ozone/public/client_native_pixmap_factory.h View 1 chunk +3 lines, -7 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 38 (17 generated)
reveman
Some refactoring and cleanup of GpuMemoryBuffer code in content/. This makes some follow up changes ...
5 years, 2 months ago (2015-10-06 22:56:20 UTC) #2
piman
LGTM + a bunch of nits. https://codereview.chromium.org/1389133002/diff/1/content/browser/gpu/browser_gpu_memory_buffer_manager.h File content/browser/gpu/browser_gpu_memory_buffer_manager.h (right): https://codereview.chromium.org/1389133002/diff/1/content/browser/gpu/browser_gpu_memory_buffer_manager.h#newcode19 content/browser/gpu/browser_gpu_memory_buffer_manager.h:19: using GpuMemoryBufferConfigurationSet = ...
5 years, 2 months ago (2015-10-07 01:20:17 UTC) #3
reveman
+spang for ui/ozone https://codereview.chromium.org/1389133002/diff/1/content/browser/gpu/browser_gpu_memory_buffer_manager.h File content/browser/gpu/browser_gpu_memory_buffer_manager.h (right): https://codereview.chromium.org/1389133002/diff/1/content/browser/gpu/browser_gpu_memory_buffer_manager.h#newcode19 content/browser/gpu/browser_gpu_memory_buffer_manager.h:19: using GpuMemoryBufferConfigurationSet = std::set<GpuMemoryBufferConfiguration>; On 2015/10/07 ...
5 years, 2 months ago (2015-10-07 09:05:01 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1389133002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1389133002/40001
5 years, 2 months ago (2015-10-07 09:05:58 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/13764)
5 years, 2 months ago (2015-10-07 09:19:57 UTC) #9
reveman
+sky for ui/gfx
5 years, 2 months ago (2015-10-07 09:51:06 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1389133002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1389133002/60001
5 years, 2 months ago (2015-10-07 09:51:57 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/78938)
5 years, 2 months ago (2015-10-07 12:17:18 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1389133002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1389133002/80001
5 years, 2 months ago (2015-10-07 12:34:02 UTC) #17
dshwang
On 2015/10/07 09:05:01, reveman wrote: > +spang for ui/ozone lgtm ui/ozone/ as non-owner
5 years, 2 months ago (2015-10-07 14:58:59 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1389133002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1389133002/100001
5 years, 2 months ago (2015-10-07 15:07:26 UTC) #20
spang
lgtm
5 years, 2 months ago (2015-10-07 15:39:17 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-07 16:19:16 UTC) #23
sky
https://codereview.chromium.org/1389133002/diff/100001/ui/gfx/OWNERS File ui/gfx/OWNERS (right): https://codereview.chromium.org/1389133002/diff/100001/ui/gfx/OWNERS#newcode23 ui/gfx/OWNERS:23: per-file buffer*=reveman@chromium.org I'm all for more owners, but AFAICT ...
5 years, 2 months ago (2015-10-07 17:35:13 UTC) #24
reveman
https://codereview.chromium.org/1389133002/diff/100001/ui/gfx/OWNERS File ui/gfx/OWNERS (right): https://codereview.chromium.org/1389133002/diff/100001/ui/gfx/OWNERS#newcode23 ui/gfx/OWNERS:23: per-file buffer*=reveman@chromium.org On 2015/10/07 at 17:35:13, sky wrote: > ...
5 years, 2 months ago (2015-10-07 18:12:57 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1389133002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1389133002/120001
5 years, 2 months ago (2015-10-07 18:15:08 UTC) #31
sky
Ok, LGTM
5 years, 2 months ago (2015-10-07 18:23:02 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-07 19:40:17 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1389133002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1389133002/120001
5 years, 2 months ago (2015-10-07 20:14:16 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 2 months ago (2015-10-07 20:26:43 UTC) #37
commit-bot: I haz the power
5 years, 2 months ago (2015-10-07 20:28:04 UTC) #38
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/fb8c8e10d21c0f784084fd043c4179ff94457d9b
Cr-Commit-Position: refs/heads/master@{#352930}

Powered by Google App Engine
This is Rietveld 408576698