diff options
author | Zach Reizner <zachr@google.com> | 2015-10-28 19:08:45 -0700 |
---|---|---|
committer | Zach Reizner <zachr@google.com> | 2015-10-29 09:59:39 -0700 |
commit | ff30b52303cdbeb9cbfb054e2a12da1135ea49c9 (patch) | |
tree | d6b9dbc08f43ae2c4814c23c653e632b4180bae1 /drmencoder.cpp | |
parent | 7cd2643b0de900e00e5b0cc0bd6dbbc649840b02 (diff) |
drm_hwcomposer: polish for old DRM wrapper code
- deleted private copy constructors
- replace delete with unique_ptr
- use in-class assignment
- remove default constructors/destructors when no longer needed
- remove most iterators used in for loops
- move UniqueFd to its own header so drmresources can use it
Change-Id: Ib20cc0949cf4d381a58548b8156c5cb368ca3efe
Diffstat (limited to 'drmencoder.cpp')
-rw-r--r-- | drmencoder.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drmencoder.cpp b/drmencoder.cpp index 39ab88b..1d4ebdc 100644 --- a/drmencoder.cpp +++ b/drmencoder.cpp @@ -31,9 +31,6 @@ DrmEncoder::DrmEncoder(drmModeEncoderPtr e, DrmCrtc *current_crtc, possible_crtcs_(possible_crtcs) { } -DrmEncoder::~DrmEncoder() { -} - uint32_t DrmEncoder::id() const { return id_; } @@ -45,12 +42,4 @@ DrmCrtc *DrmEncoder::crtc() const { void DrmEncoder::set_crtc(DrmCrtc *crtc) { crtc_ = crtc; } - -DrmEncoder::CrtcIter DrmEncoder::begin_possible_crtcs() const { - return possible_crtcs_.begin(); -} - -DrmEncoder::CrtcIter DrmEncoder::end_possible_crtcs() const { - return possible_crtcs_.end(); -} } |