Moved the dummy table local to the PicturePlayer::Play() function since,
as Marcus pointed out, having it outside wasn't thread safe. Moved PicturePlayer into the BPrivate namespace. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21982 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
*
|
||||
* Authors:
|
||||
* Marc Flerackers ([email protected])
|
||||
* Stefano Ceccherini ([email protected])
|
||||
* Stefano Ceccherini ([email protected])
|
||||
* Marcus Overhagen ([email protected])
|
||||
*/
|
||||
|
||||
/** PicturePlayer is used to play picture data. */
|
||||
|
||||
#ifndef _TPICTURE_H
|
||||
#define _TPICTURE_H
|
||||
#ifndef _PICTUREPLAYER_H
|
||||
#define _PICTUREPLAYER_H
|
||||
|
||||
|
||||
#include <GraphicsDefs.h>
|
||||
@@ -20,21 +20,14 @@
|
||||
#include <DataIO.h>
|
||||
|
||||
|
||||
namespace BPrivate {
|
||||
|
||||
class PicturePlayer {
|
||||
public:
|
||||
PicturePlayer();
|
||||
PicturePlayer(const void *data, size_t size, BList *pictures);
|
||||
virtual ~PicturePlayer();
|
||||
|
||||
void BeginOp(int32);
|
||||
void EndOp();
|
||||
|
||||
void EnterStateChange();
|
||||
void ExitStateChange();
|
||||
|
||||
void EnterFontChange();
|
||||
void ExitFontChange();
|
||||
|
||||
status_t Play(void **callBackTable, int32 tableEntries,
|
||||
void *userData);
|
||||
|
||||
@@ -44,4 +37,6 @@ private:
|
||||
BList *fPictures;
|
||||
};
|
||||
|
||||
#endif // _TPICTURE_H
|
||||
}; // namespace BPrivate
|
||||
|
||||
#endif // _PICTUREPLAYER_H
|
||||
|
||||
Reference in New Issue
Block a user