drm_hwcomposer: Cleanup DrmDisplayComposition initialization
Remove unused members (drm, importer, frame_no). Move initialization from the proper function to the constructor. Signed-off-by: Matvii Zorin <matvii.zorin@globallogic.com>
This commit is contained in:
parent
d21071f7d5
commit
704ea0e8fb
5 changed files with 13 additions and 54 deletions
|
|
@ -32,16 +32,9 @@
|
|||
|
||||
namespace android {
|
||||
|
||||
int DrmDisplayComposition::Init(DrmDevice *drm, DrmCrtc *crtc,
|
||||
Importer *importer, Planner *planner,
|
||||
uint64_t frame_no) {
|
||||
drm_ = drm;
|
||||
crtc_ = crtc; // Can be NULL if we haven't modeset yet
|
||||
importer_ = importer;
|
||||
planner_ = planner;
|
||||
frame_no_ = frame_no;
|
||||
|
||||
return 0;
|
||||
DrmDisplayComposition::DrmDisplayComposition(DrmCrtc *crtc, Planner *planner)
|
||||
: crtc_(crtc), // Can be NULL if we haven't modeset yet
|
||||
planner_(planner) {
|
||||
}
|
||||
|
||||
bool DrmDisplayComposition::validate_composition_type(DrmCompositionType des) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue