Lines Matching refs:bitmap

391 /*!	\brief Acquires a reference of the desired bitmap, if available.
392 \param token ID token of the bitmap to find
393 \return The bitmap having that ID or NULL if not found
403 ServerBitmap* bitmap = _FindBitmap(token);
404 if (bitmap == NULL)
407 bitmap->AcquireReference();
409 return bitmap;
580 ServerBitmap* bitmap = iterator->second;
583 bitmap->Token(), bitmap->Width(), bitmap->Height(),
584 bitmap->Area(), bitmap->BitsLength());
733 // Allocate a bitmap for an application
744 // 2) area_id id of the area in which the bitmap data resides
747 // First, let's attempt to allocate the bitmap
748 BReference<ServerBitmap> bitmap;
764 bitmap.SetTo(gBitmapManager->CreateBitmap(fMemoryAllocator,
772 if (bitmap != NULL && _AddBitmap(bitmap)) {
774 fLink.Attach<int32>(bitmap->Token());
777 fLink.Attach<area_id>(bitmap->Area());
778 fLink.Attach<int32>(bitmap->AreaOffset());
781 fLink.Attach<int32>(bitmap->BytesPerRow());
802 ServerBitmap* bitmap = _FindBitmap(token);
803 if (bitmap != NULL) {
807 _DeleteBitmap(bitmap);
823 BReference<ServerBitmap> bitmap(GetBitmap(token), true);
824 if (bitmap != NULL) {
825 STRACE(("ServerApp %s: Get overlay restrictions for bitmap "
829 bitmap->Overlay(), &restrictions);
858 // First, let's attempt to allocate the bitmap
859 BReference<ServerBitmap> bitmap;
878 bitmap.SetTo(gBitmapManager->CloneFromClient(clientArea, areaOffset,
882 if (bitmap != NULL && _AddBitmap(bitmap)) {
884 fLink.Attach<int32>(bitmap->Token());
886 fLink.Attach<area_id>(bitmap->Area());
1209 STRACE(("ServerApp %s: Create Cursor bitmap\n", Signature()));
1319 STRACE(("ServerApp %s: Get Cursor bitmap\n", Signature()));
1322 // 1) uint32 number of data bytes of the bitmap
1326 // 5) cursor bitmap data
3432 BReference<ServerBitmap> bitmap(GetBitmap(token), true);
3433 if (bitmap != NULL) {
3435 success = fDesktop->GetDrawingEngine()->ReadBitmap(bitmap,
3689 // 1) int32 bitmap token (only for AS_CREATE_OFFSCREEN_WINDOW)
3734 ServerBitmap* bitmap = GetBitmap(bitmapToken);
3736 if (bitmap != NULL) {
3738 clientReplyPort, looperPort, token, bitmap);
3788 ServerApp::_AddBitmap(ServerBitmap* bitmap)
3793 fBitmapMap.insert(std::make_pair(bitmap->Token(), BReference<ServerBitmap>(bitmap, false)));
3798 bitmap->SetOwner(this);
3804 ServerApp::_DeleteBitmap(ServerBitmap* bitmap)
3808 gBitmapManager->BitmapRemoved(bitmap);
3809 fBitmapMap.erase(bitmap->Token());