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

Issue 2774583002: ui: Reduce logging in ui::ClientNativePixmapDmaBuf. (Closed)

Created:
3 years, 9 months ago by reveman
Modified:
3 years, 8 months ago
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ui: Reduce logging in ui::ClientNativePixmapDmaBuf. Reduce PrimeSync error logging to when DCHECKS are on. BUG=641392 TBR=danakj@chromium.org Review-Url: https://codereview.chromium.org/2774583002 Cr-Commit-Position: refs/heads/master@{#459674} Committed: https://chromium.googlesource.com/chromium/src/+/7467681237852ada4d444509d065a4a0de6e6131

Patch Set 1 #

Total comments: 2

Patch Set 2 : reduce logging to DCHECK_IS_ON #

Total comments: 3

Patch Set 3 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M ui/gfx/linux/client_native_pixmap_dmabuf.cc View 1 2 1 chunk +10 lines, -4 lines 1 comment Download

Messages

Total messages: 42 (22 generated)
reveman
3 years, 9 months ago (2017-03-23 05:30:32 UTC) #2
Daniele Castagna
https://codereview.chromium.org/2774583002/diff/1/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc File ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2774583002/diff/1/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc#newcode135 ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc:135: ++map_count_; nit: If we increment it here it's not ...
3 years, 9 months ago (2017-03-24 00:53:11 UTC) #3
reveman
Made this simpler as discussed by reducing logging to when DCHECKs are on. Ptal.
3 years, 9 months ago (2017-03-24 01:48:03 UTC) #5
Daniele Castagna
And since no one but us is running Chrome on CrOS with DCHECKs on, this ...
3 years, 9 months ago (2017-03-24 01:54:08 UTC) #6
reveman
+dnicoara for owner review
3 years, 9 months ago (2017-03-24 01:57:24 UTC) #10
dnicoara
This lgtm, just one question wrt devices with release builds. https://codereview.chromium.org/2774583002/diff/20001/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc File ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2774583002/diff/20001/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc#newcode54 ...
3 years, 9 months ago (2017-03-24 15:03:59 UTC) #13
reveman
https://codereview.chromium.org/2774583002/diff/20001/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc File ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2774583002/diff/20001/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc#newcode54 ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc:54: DPLOG_IF(ERROR, rv) << "Failed DMA_BUF_SYNC_START"; On 2017/03/24 at 15:03:59, ...
3 years, 9 months ago (2017-03-24 17:16:49 UTC) #14
dnicoara
sgtm, still lgtm
3 years, 9 months ago (2017-03-24 17:38:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2774583002/20001
3 years, 9 months ago (2017-03-25 03:08:23 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xcode-clang/builds/66527)
3 years, 9 months ago (2017-03-25 03:10:36 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2774583002/20001
3 years, 9 months ago (2017-03-26 04:36:40 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/177612) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-03-26 04:38:31 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2774583002/40001
3 years, 9 months ago (2017-03-26 05:13:56 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/394857)
3 years, 9 months ago (2017-03-26 05:19:22 UTC) #28
reveman
TBR danakj as the file was just moved from ozone to ui/gfx/linux/
3 years, 9 months ago (2017-03-26 05:46:30 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2774583002/40001
3 years, 9 months ago (2017-03-26 05:46:40 UTC) #33
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/7467681237852ada4d444509d065a4a0de6e6131
3 years, 9 months ago (2017-03-26 06:32:10 UTC) #36
marcheu
https://codereview.chromium.org/2774583002/diff/40001/ui/gfx/linux/client_native_pixmap_dmabuf.cc File ui/gfx/linux/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2774583002/diff/40001/ui/gfx/linux/client_native_pixmap_dmabuf.cc#newcode53 ui/gfx/linux/client_native_pixmap_dmabuf.cc:53: drmIoctl(dmabuf_fd, LOCAL_DMA_BUF_IOCTL_SYNC, &sync_start); I don't think drmIoctl is meant ...
3 years, 8 months ago (2017-03-28 01:07:26 UTC) #38
reveman
On 2017/03/28 at 01:07:26, marcheu wrote: > https://codereview.chromium.org/2774583002/diff/40001/ui/gfx/linux/client_native_pixmap_dmabuf.cc > File ui/gfx/linux/client_native_pixmap_dmabuf.cc (right): > > https://codereview.chromium.org/2774583002/diff/40001/ui/gfx/linux/client_native_pixmap_dmabuf.cc#newcode53 ...
3 years, 8 months ago (2017-03-28 06:09:20 UTC) #40
dshwang
3 years, 8 months ago (2017-04-06 00:52:59 UTC) #41
Message was sent while issue was closed.
On 2017/03/28 06:09:20, reveman wrote:
> On 2017/03/28 at 01:07:26, marcheu wrote:
> >
>
https://codereview.chromium.org/2774583002/diff/40001/ui/gfx/linux/client_nat...
> > File ui/gfx/linux/client_native_pixmap_dmabuf.cc (right):
> > 
> >
>
https://codereview.chromium.org/2774583002/diff/40001/ui/gfx/linux/client_nat...
> > ui/gfx/linux/client_native_pixmap_dmabuf.cc:53: drmIoctl(dmabuf_fd,
> LOCAL_DMA_BUF_IOCTL_SYNC, &sync_start);
> > I don't think drmIoctl is meant to be used for non-drm ioctls. In other
words,
> you should use ioctl() here and wrap your own error handler around it.
> 
> +tiago.vignatti,
> +dongseong
> +spang
> 
> who implemented and reviewed the change that added this.

Yes, it's wrong. Thank you for catching up.
I submitted new CL https://codereview.chromium.org/2805503003

Powered by Google App Engine
This is Rietveld 408576698