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

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

Issue 471433007: [Ozone-Dri] Adding initial content protection support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cast Created 6 years, 4 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/dri_wrapper.h ('k') | ui/ozone/platform/dri/test/mock_dri_wrapper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_wrapper.cc
diff --git a/ui/ozone/platform/dri/dri_wrapper.cc b/ui/ozone/platform/dri/dri_wrapper.cc
index ff2dc87ab69bd54879c5218cf512b510117a968e..0d395c87c3922685a68e7ff65427909e3c076e3f 100644
--- a/ui/ozone/platform/dri/dri_wrapper.cc
+++ b/ui/ozone/platform/dri/dri_wrapper.cc
@@ -121,6 +121,12 @@ bool DriWrapper::DisableCrtc(uint32_t crtc_id) {
return !drmModeSetCrtc(fd_, crtc_id, 0, 0, 0, NULL, 0, NULL);
}
+ScopedDrmConnectorPtr DriWrapper::GetConnector(uint32_t connector_id) {
+ DCHECK(fd_ >= 0);
+ TRACE_EVENT1("dri", "DriWrapper::GetConnector", "connector", connector_id);
+ return ScopedDrmConnectorPtr(drmModeGetConnector(fd_, connector_id));
+}
+
bool DriWrapper::AddFramebuffer(uint32_t width,
uint32_t height,
uint8_t depth,
« no previous file with comments | « ui/ozone/platform/dri/dri_wrapper.h ('k') | ui/ozone/platform/dri/test/mock_dri_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698