app_server & BWindowScreen: Do away with AS_GET_FRAME_BUFFER_CONFIG.
It can't work if the framebuffer is mapped per-application. Instead, use the accelerant hook to get the framebuffer. The BScreen methods this disables were deprecated and marked private already, so no Haiku applications should be affected. (If really necessary they could be reimplemented with BWindowScreen.) Remove first _GetCardInfo in BWindowScreen; we invoke it later, closer to where the buffer is actually used. Tested with ParticlesII (which uses BWindowScreen) on VESA with the new user-only-mapping accelerant. Change-Id: I405bcfa8cb1eb2d0c346fafbc6233bef15196134 Reviewed-on: https://review.haiku-os.org/c/haiku/+/10572 Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
f6be811473
commit
861f644f19
@@ -170,7 +170,6 @@ enum {
|
||||
AS_GET_RETRACE_SEMAPHORE,
|
||||
AS_GET_ACCELERANT_INFO,
|
||||
AS_GET_MONITOR_INFO,
|
||||
AS_GET_FRAME_BUFFER_CONFIG,
|
||||
|
||||
AS_SET_DPMS,
|
||||
AS_GET_DPMS_STATE,
|
||||
|
||||
@@ -85,9 +85,6 @@ public:
|
||||
status_t GetBrightness(float*);
|
||||
status_t SetBrightness(float);
|
||||
|
||||
void* BaseAddress();
|
||||
uint32 BytesPerRow();
|
||||
|
||||
private:
|
||||
friend class BObjectList<BPrivateScreen, true>;
|
||||
|
||||
@@ -98,8 +95,6 @@ private:
|
||||
bool _Release();
|
||||
|
||||
sem_id _RetraceSemaphore();
|
||||
status_t _GetFrameBufferConfig(
|
||||
frame_buffer_config& config);
|
||||
|
||||
static BPrivateScreen* _Get(int32 id, bool check);
|
||||
static bool _IsValid(int32 id);
|
||||
|
||||
Reference in New Issue
Block a user