moved more of the old stuff from DisplayDriver into DisplayDriverImpl
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12142 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3f537e5fa7
commit
127b4b0a4b
@ -307,10 +307,9 @@ class DisplayDriver {
|
|||||||
virtual void Unlock() = 0;
|
virtual void Unlock() = 0;
|
||||||
|
|
||||||
// display mode access
|
// display mode access
|
||||||
virtual void SetMode(const display_mode &mode);
|
virtual void SetMode(const display_mode &mode) = 0;
|
||||||
void GetMode(display_mode *mode);
|
virtual void GetMode(display_mode *mode) = 0;
|
||||||
inline const display_mode* DisplayMode() const
|
virtual const display_mode* DisplayMode() = 0;
|
||||||
{ return &fDisplayMode; }
|
|
||||||
|
|
||||||
virtual bool DumpToFile(const char *path) = 0;
|
virtual bool DumpToFile(const char *path) = 0;
|
||||||
virtual ServerBitmap* DumpToBitmap() = 0;
|
virtual ServerBitmap* DumpToBitmap() = 0;
|
||||||
@ -319,9 +318,9 @@ class DisplayDriver {
|
|||||||
const LineArrayData *data,
|
const LineArrayData *data,
|
||||||
const DrawData *d) = 0;
|
const DrawData *d) = 0;
|
||||||
|
|
||||||
virtual status_t SetDPMSMode(const uint32 &state);
|
virtual status_t SetDPMSMode(const uint32 &state) = 0;
|
||||||
virtual uint32 DPMSMode();
|
virtual uint32 DPMSMode() = 0;
|
||||||
virtual uint32 DPMSCapabilities();
|
virtual uint32 DPMSCapabilities() = 0;
|
||||||
virtual status_t GetDeviceInfo(accelerant_device_info *info) = 0;
|
virtual status_t GetDeviceInfo(accelerant_device_info *info) = 0;
|
||||||
|
|
||||||
virtual status_t GetModeList(display_mode **mode_list,
|
virtual status_t GetModeList(display_mode **mode_list,
|
||||||
@ -357,10 +356,6 @@ class DisplayDriver {
|
|||||||
// needed by Layer
|
// needed by Layer
|
||||||
virtual void ConstrainClippingRegion(BRegion *reg) = 0;
|
virtual void ConstrainClippingRegion(BRegion *reg) = 0;
|
||||||
|
|
||||||
protected:
|
|
||||||
display_mode fDisplayMode;
|
|
||||||
uint32 fDPMSState;
|
|
||||||
uint32 fDPMSCaps;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -38,7 +38,8 @@
|
|||||||
|
|
||||||
// Display driver to be used by the server.
|
// Display driver to be used by the server.
|
||||||
#ifndef DISPLAYDRIVER
|
#ifndef DISPLAYDRIVER
|
||||||
# define DISPLAYDRIVER PAINTERDRIVER
|
//# define DISPLAYDRIVER PAINTERDRIVER
|
||||||
|
# define DISPLAYDRIVER VIEWDRIVER
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Uncomment this if the DisplayDriver should only rely on drawing functions implemented
|
// Uncomment this if the DisplayDriver should only rely on drawing functions implemented
|
||||||
|
Loading…
Reference in New Issue
Block a user