Lines Matching refs:bitmap

44 //! The one and only bitmap manager for the server, created by the AppServer
78 \param bounds Size of the bitmap
79 \param space Color space of the bitmap
108 ServerBitmap* bitmap = new(std::nothrow) ServerBitmap(bounds, space, flags,
110 if (bitmap == NULL) {
120 Overlay* overlay = new(std::nothrow) Overlay(hwInterface, bitmap,
129 clientData = (overlay_client_data*)bitmap->fClientMemory.Allocate(
136 bitmap->fMemory = &bitmap->fClientMemory;
137 bitmap->SetOverlay(overlay);
138 bitmap->fBytesPerRow = overlay->OverlayBuffer()->bytes_per_row;
148 buffer = (uint8*)bitmap->fClientMemory.Allocate(allocator,
149 bitmap->BitsLength(), newArea);
151 bitmap->fMemory = &bitmap->fClientMemory;
158 buffer = (uint8*)malloc(bitmap->BitsLength());
160 bitmap->fMemory = NULL;
169 success = fBitmapList.AddItem(bitmap);
170 if (success && bitmap->Overlay() != NULL) {
171 success = fOverlays.AddItem(bitmap);
173 fBitmapList.RemoveItem(bitmap);
178 bitmap->fBuffer = buffer;
179 bitmap->fToken = gTokenSpace.NewToken(kBitmapToken, bitmap);
183 // Allocation failed for buffer or bitmap list
185 delete bitmap;
186 bitmap = NULL;
189 return bitmap;
200 BReference<ServerBitmap> bitmap(new(std::nothrow) ServerBitmap(bounds, space, flags,
202 if (bitmap == NULL)
215 bitmap->fMemory = memory;
216 bitmap->fBuffer = memory->Address();
217 bitmap->fToken = gTokenSpace.NewToken(kBitmapToken, bitmap);
218 return bitmap.Detach();
225 BitmapManager::BitmapRemoved(ServerBitmap* bitmap)
231 gTokenSpace.RemoveToken(bitmap->Token());
233 if (bitmap->Overlay() != NULL)
234 fOverlays.RemoveItem(bitmap);
236 fBitmapList.RemoveItem(bitmap);
251 ServerBitmap* bitmap = (ServerBitmap*)fOverlays.ItemAt(i);
252 apps.BinaryInsert(bitmap->Owner(), &compare_app_pointer);
262 ServerBitmap* bitmap = (ServerBitmap*)fOverlays.ItemAt(i);
263 bitmap->Overlay()->Suspend(bitmap, false);
280 ServerBitmap* bitmap = (ServerBitmap*)fOverlays.ItemAt(i);
281 apps.BinaryInsert(bitmap->Owner(), &compare_app_pointer);
291 ServerBitmap* bitmap = (ServerBitmap*)fOverlays.ItemAt(i);
293 bitmap->Overlay()->Resume(bitmap);