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

Unified Diff: ui/ozone/platform/dri/gbm_buffer.cc

Issue 905873003: [8/8][Ozone-Dri] Pass DRM FD to GPU process on hotplug event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@udl2.9-allow-ndd-to-handle-multiple-drm-devices
Patch Set: . Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/dri/drm_device_generator.cc ('k') | ui/ozone/platform/dri/native_display_delegate_dri.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/gbm_buffer.cc
diff --git a/ui/ozone/platform/dri/gbm_buffer.cc b/ui/ozone/platform/dri/gbm_buffer.cc
index ec25bd67377cb51e1da4a41810b7c5ec2e80e5c6..371e9abd265dffd82327721ef7fb44f185a23907 100644
--- a/ui/ozone/platform/dri/gbm_buffer.cc
+++ b/ui/ozone/platform/dri/gbm_buffer.cc
@@ -10,6 +10,7 @@
#include <xf86drm.h>
#include "base/logging.h"
+#include "base/trace_event/trace_event.h"
#include "ui/ozone/platform/dri/gbm_wrapper.h"
namespace ui {
@@ -47,6 +48,8 @@ scoped_refptr<GbmBuffer> GbmBuffer::CreateBuffer(
SurfaceFactoryOzone::BufferFormat format,
const gfx::Size& size,
bool scanout) {
+ TRACE_EVENT2("dri", "GbmBuffer::CreateBuffer", "device",
+ gbm->device_path().value(), "size", size.ToString());
unsigned flags = GBM_BO_USE_RENDERING;
if (scanout)
flags |= GBM_BO_USE_SCANOUT;
« no previous file with comments | « ui/ozone/platform/dri/drm_device_generator.cc ('k') | ui/ozone/platform/dri/native_display_delegate_dri.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698