21c8c925d8
is managed for those bitmaps: - the shared client memory mechanism is used to allocate a small overlay_client_data structure that contains the actual buffer and a semaphore that you have acquire in order to access it. - LockBits()/UnlockBits() now have a function: you need to call them before accessing the overlay buffer, and you need to keep that lock until you're done with it. * The overlay cookie is now an extra member of the ServerBitmap class. * Removed fInitialized from ServerBitmap - IsValid() now just checks the buffer associated with the bitmap. * ViewLayer::Draw() will now handle overlay bitmaps specially and will draw the overlay color instead of any contents (this is currently in ugly pink, but will become some dark color later on). * All what's missing from actually being able to use overlays now is to configure them so that they are shown on screen. VLC will now show an empty pink window when overlay video is enabled. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17201 a95241bf-73f2-0310-859d-f6bbb57e9c96
20 lines
322 B
C
20 lines
322 B
C
/*
|
|
* Copyright 2006, Haiku, Inc.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _BITMAP_PRIVATE_H
|
|
#define _BITMAP_PRIVATE_H
|
|
|
|
|
|
#include <OS.h>
|
|
|
|
|
|
// This structure is placed in the client/server shared memory area.
|
|
|
|
struct overlay_client_data {
|
|
sem_id lock;
|
|
uint8* buffer;
|
|
};
|
|
|
|
#endif // _BITMAP_PRIVATE_H
|