1/* 2// Copyright (c) 2014 Intel Corporation 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15*/ 16#ifndef TNG_PLANE_MANAGER_H 17#define TNG_PLANE_MANAGER_H 18 19#include <DisplayPlaneManager.h> 20#include <linux/psb_drm.h> 21 22namespace android { 23namespace intel { 24 25class TngPlaneManager : public DisplayPlaneManager { 26public: 27 TngPlaneManager(); 28 virtual ~TngPlaneManager(); 29 30public: 31 virtual bool initialize(); 32 virtual void deinitialize(); 33 virtual bool isValidZOrder(int dsp, ZOrderConfig& config); 34 virtual bool assignPlanes(int dsp, ZOrderConfig& config); 35 // TODO: remove this API 36 virtual void* getZOrderConfig() const; 37 38protected: 39 DisplayPlane* allocPlane(int index, int type); 40 DisplayPlane* getPlaneHelper(int dsp, int type); 41 42private: 43 struct intel_dc_plane_zorder mZorder; 44}; 45 46} // namespace intel 47} // namespace android 48 49 50#endif /* TNG_PLANE_MANAGER_H */ 51