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

Issue 1258713002: ozone: unify GpuMemoryBufferFactoryOzoneNativePixmap in content/ (Closed)

Created:
5 years, 5 months ago by dshwang
Modified:
5 years, 4 months ago
Reviewers:
piman, reveman, spang
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, kalyank, mcasas+watch_chromium.org, ozone-reviews_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ozone: unify GpuMemoryBufferFactoryOzoneNativePixmap in content/ ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.h/cc is merged into content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.h/cc now that that class changed name and it's not supposed to manage native "buffers" anymore but instead native "pixmaps". The reason we introduced it in the past was to avoid exposing the "pixmap" concept to content/ but as part of giving up on that we should move that code to content/. content/common/gpu/media/ already uses the "pixmap" concept. Now ui/ozone/gpu/ is not needed anymore, so remove it. Introduce GLImageOzoneNativePixmap like GLImageIOSurface and GLImageSurfaceTexture. TEST=run ozone_demo BUG=475633 Committed: https://crrev.com/161c7a23d99119c7acf7f9faf0ae794ab4d62b62 Cr-Commit-Position: refs/heads/master@{#340927}

Patch Set 1 #

Total comments: 29

Patch Set 2 : address comments #

Total comments: 16

Patch Set 3 : address piman's comments #

Patch Set 4 : Re-factor ui/gl/gl_image_ozone_native_pixmap.h/cc so there's only one #

Total comments: 6

Patch Set 5 : GLImageOzoneNativePixmap : public GLImageLinuxDMABuffer #

Patch Set 6 : build fix of cast_shell_linux #

Total comments: 18

Patch Set 7 : Merge gl_image_linux_dma_buffer into gl_image_ozone_native_pixmap #

Total comments: 12

Patch Set 8 : resolve nits #

Total comments: 2

Patch Set 9 : fix linux_chromium_gn_dgb build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -693 lines) Patch
M content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -5 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc View 1 2 3 4 5 6 7 5 chunks +76 lines, -7 lines 0 comments Download
M content/common/gpu/media/vaapi_drm_picture.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -4 lines 0 comments Download
M ui/gl/gl.gyp View 1 2 3 4 5 6 2 chunks +4 lines, -6 lines 0 comments Download
D ui/gl/gl_image_linux_dma_buffer.h View 1 2 3 4 5 6 1 chunk +0 lines, -37 lines 0 comments Download
D ui/gl/gl_image_linux_dma_buffer.cc View 1 2 3 4 5 6 1 chunk +0 lines, -126 lines 0 comments Download
A ui/gl/gl_image_ozone_native_pixmap.h View 1 2 3 4 5 6 7 1 chunk +39 lines, -0 lines 0 comments Download
A ui/gl/gl_image_ozone_native_pixmap.cc View 1 2 3 4 5 6 7 1 chunk +144 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_ozone.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -51 lines 0 comments Download
M ui/ozone/demo/ozone_demo.cc View 3 chunks +1 line, -6 lines 0 comments Download
M ui/ozone/demo/ozone_demos.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M ui/ozone/demo/surfaceless_gl_renderer.h View 3 chunks +2 lines, -11 lines 0 comments Download
M ui/ozone/demo/surfaceless_gl_renderer.cc View 1 2 3 4 5 6 7 4 chunks +17 lines, -24 lines 0 comments Download
D ui/ozone/gpu/BUILD.gn View 1 chunk +0 lines, -22 lines 0 comments Download
D ui/ozone/gpu/DEPS View 1 chunk +0 lines, -3 lines 0 comments Download
D ui/ozone/gpu/README View 1 chunk +0 lines, -1 line 0 comments Download
D ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.h View 1 chunk +0 lines, -67 lines 0 comments Download
D ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc View 1 chunk +0 lines, -258 lines 0 comments Download
D ui/ozone/gpu/ozone_gpu.gyp View 1 chunk +0 lines, -29 lines 0 comments Download
D ui/ozone/gpu/ozone_gpu_export.h View 1 chunk +0 lines, -29 lines 0 comments Download

Messages

Total messages: 41 (12 generated)
dshwang
reveman, could you review? submit this CL, as you requested unifying GpuMemoryBufferFactoryOzoneNativePixmap in crrev.com/1128113011
5 years, 5 months ago (2015-07-24 18:07:23 UTC) #2
spang
ui/ozone lgtm https://codereview.chromium.org/1258713002/diff/1/ui/ozone/gpu/README File ui/ozone/gpu/README (left): https://codereview.chromium.org/1258713002/diff/1/ui/ozone/gpu/README#oldcode1 ui/ozone/gpu/README:1: This component contains support code for content/common/gpu. ...
5 years, 5 months ago (2015-07-24 18:14:18 UTC) #3
dshwang
On 2015/07/24 18:14:18, spang wrote: > ui/ozone lgtm Thank you for rapid reviewing! reveman, could ...
5 years, 5 months ago (2015-07-24 18:23:02 UTC) #5
piman
https://codereview.chromium.org/1258713002/diff/1/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc File content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1258713002/diff/1/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc#newcode141 content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc:141: ui::NativePixmap* pixmap = nullptr; You need to keep a ...
5 years, 5 months ago (2015-07-24 18:41:25 UTC) #6
reveman
https://codereview.chromium.org/1258713002/diff/1/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc File content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1258713002/diff/1/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc#newcode60 content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc:60: } nit: remove this function in favor of just ...
5 years, 5 months ago (2015-07-24 19:13:17 UTC) #7
dshwang
thank you for quick reviewing! I addressed all comments. could you review again? https://codereview.chromium.org/1258713002/diff/1/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc File ...
5 years, 5 months ago (2015-07-24 19:57:21 UTC) #9
piman
LGTM with a bunch of nits. Make sure you get reveman@'s LGTM before landing. https://codereview.chromium.org/1258713002/diff/40001/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc ...
5 years, 5 months ago (2015-07-24 21:56:26 UTC) #10
dshwang
On 2015/07/24 21:56:26, piman (Very slow to review) wrote: > LGTM with a bunch of ...
5 years, 5 months ago (2015-07-25 05:28:15 UTC) #11
piman
https://codereview.chromium.org/1258713002/diff/40001/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc File content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1258713002/diff/40001/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc#newcode114 content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc:114: native_pixmaps_[BufferToPixmapMapKey(id, client_id)] = pixmap; On 2015/07/25 05:28:15, dshwang wrote: ...
5 years, 4 months ago (2015-07-27 19:07:51 UTC) #12
piman
https://codereview.chromium.org/1258713002/diff/40001/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc File content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1258713002/diff/40001/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc#newcode114 content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc:114: native_pixmaps_[BufferToPixmapMapKey(id, client_id)] = pixmap; On 2015/07/25 05:28:15, dshwang wrote: ...
5 years, 4 months ago (2015-07-27 19:07:51 UTC) #13
piman
5 years, 4 months ago (2015-07-27 19:10:31 UTC) #14
reveman
Re-factor ui/gl/gl_image_ozone_native_pixmap.h/cc so there's only one GLImageOzoneNativePixmap class (probably means not using GLImageLinuxDMABuffer) consistent with ...
5 years, 4 months ago (2015-07-27 19:28:29 UTC) #15
dshwang
On 2015/07/27 19:28:29, reveman wrote: > Re-factor ui/gl/gl_image_ozone_native_pixmap.h/cc so there's only one > GLImageOzoneNativePixmap class ...
5 years, 4 months ago (2015-07-28 12:15:19 UTC) #16
reveman
https://codereview.chromium.org/1258713002/diff/80001/ui/gl/gl_image_ozone_native_pixmap.h File ui/gl/gl_image_ozone_native_pixmap.h (right): https://codereview.chromium.org/1258713002/diff/80001/ui/gl/gl_image_ozone_native_pixmap.h#newcode14 ui/gl/gl_image_ozone_native_pixmap.h:14: class GL_EXPORT GLImageOzoneNativePixmap : public GLImage { While it ...
5 years, 4 months ago (2015-07-28 14:40:57 UTC) #17
dshwang
reveman, Thank you for reviewing. Could you review again? https://codereview.chromium.org/1258713002/diff/80001/ui/gl/gl_image_ozone_native_pixmap.h File ui/gl/gl_image_ozone_native_pixmap.h (right): https://codereview.chromium.org/1258713002/diff/80001/ui/gl/gl_image_ozone_native_pixmap.h#newcode14 ui/gl/gl_image_ozone_native_pixmap.h:14: ...
5 years, 4 months ago (2015-07-28 16:21:55 UTC) #18
reveman
https://codereview.chromium.org/1258713002/diff/140001/ui/gl/gl_image_ozone_native_pixmap.cc File ui/gl/gl_image_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1258713002/diff/140001/ui/gl/gl_image_ozone_native_pixmap.cc#newcode13 ui/gl/gl_image_ozone_native_pixmap.cc:13: GLImageOzoneNativePixmap::~GLImageOzoneNativePixmap() {} DCHECK(!pixmap_) in dtor https://codereview.chromium.org/1258713002/diff/140001/ui/gl/gl_image_ozone_native_pixmap.cc#newcode18 ui/gl/gl_image_ozone_native_pixmap.cc:18: DCHECK(pixmap); DCHECK(!pixmap_) ...
5 years, 4 months ago (2015-07-28 19:11:17 UTC) #20
spang
https://codereview.chromium.org/1258713002/diff/80001/ui/gl/gl_image_ozone_native_pixmap.h File ui/gl/gl_image_ozone_native_pixmap.h (right): https://codereview.chromium.org/1258713002/diff/80001/ui/gl/gl_image_ozone_native_pixmap.h#newcode14 ui/gl/gl_image_ozone_native_pixmap.h:14: class GL_EXPORT GLImageOzoneNativePixmap : public GLImage { On 2015/07/28 ...
5 years, 4 months ago (2015-07-28 19:34:27 UTC) #21
dshwang
thx for reviewing. I resolved your comments. could you review again? https://codereview.chromium.org/1258713002/diff/80001/ui/gl/gl_image_ozone_native_pixmap.h File ui/gl/gl_image_ozone_native_pixmap.h (right): ...
5 years, 4 months ago (2015-07-29 13:23:10 UTC) #23
reveman
lgtm with nits https://codereview.chromium.org/1258713002/diff/140001/ui/gl/gl_image_ozone_native_pixmap.cc File ui/gl/gl_image_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1258713002/diff/140001/ui/gl/gl_image_ozone_native_pixmap.cc#newcode18 ui/gl/gl_image_ozone_native_pixmap.cc:18: DCHECK(pixmap); On 2015/07/29 at 13:23:09, dshwang ...
5 years, 4 months ago (2015-07-29 14:16:41 UTC) #24
dshwang
thx for careful reviewing. addressed all nits. https://codereview.chromium.org/1258713002/diff/140001/ui/gl/gl_image_ozone_native_pixmap.cc File ui/gl/gl_image_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1258713002/diff/140001/ui/gl/gl_image_ozone_native_pixmap.cc#newcode18 ui/gl/gl_image_ozone_native_pixmap.cc:18: DCHECK(pixmap); On ...
5 years, 4 months ago (2015-07-29 15:15:04 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1258713002/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1258713002/190001
5 years, 4 months ago (2015-07-29 15:16:53 UTC) #28
reveman
https://codereview.chromium.org/1258713002/diff/190001/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc File content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1258713002/diff/190001/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc#newcode125 content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc:125: DCHECK(it != native_pixmaps_.end()) << "pixmap with this key must ...
5 years, 4 months ago (2015-07-29 15:28:14 UTC) #29
dshwang
https://codereview.chromium.org/1258713002/diff/190001/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc File content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc (right): https://codereview.chromium.org/1258713002/diff/190001/content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc#newcode125 content/common/gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc:125: DCHECK(it != native_pixmaps_.end()) << "pixmap with this key must ...
5 years, 4 months ago (2015-07-29 15:35:28 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/97515)
5 years, 4 months ago (2015-07-29 15:40:31 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1258713002/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1258713002/190001
5 years, 4 months ago (2015-07-29 15:49:04 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/97530)
5 years, 4 months ago (2015-07-29 16:24:09 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1258713002/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1258713002/210001
5 years, 4 months ago (2015-07-29 17:43:10 UTC) #39
commit-bot: I haz the power
Committed patchset #9 (id:210001)
5 years, 4 months ago (2015-07-29 18:28:28 UTC) #40
commit-bot: I haz the power
5 years, 4 months ago (2015-07-29 18:29:43 UTC) #41
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/161c7a23d99119c7acf7f9faf0ae794ab4d62b62
Cr-Commit-Position: refs/heads/master@{#340927}

Powered by Google App Engine
This is Rietveld 408576698