Lines Matching refs:fBitmap
47 fBitmap(NULL), in SoftwareRenderer()
80 fContextID = fContextObj->CreateContext(fBitmap); in SoftwareRenderer()
101 if (fBitmap) in ~SoftwareRenderer()
102 delete fBitmap; in ~SoftwareRenderer()
120 if (fBitmap && cs == fColorSpace && fContextObj->Validate(fWidth, fHeight)) { in LockGL()
121 fContextObj->SetCurrentContext(fBitmap, fContextID); in LockGL()
128 fContextObj->SetCurrentContext(fBitmap, fContextID); in LockGL()
148 if (!fBitmap) in SwapBuffers()
159 GLView()->DrawBitmap(fBitmap, B_ORIGIN); in SwapBuffers()
169 != fBitmap->Bounds().IntegerHeight() in SwapBuffers()
171 != fBitmap->Bounds().IntegerWidth()) { in SwapBuffers()
176 uint32 bytesPerRow = fBitmap->BytesPerRow(); in SwapBuffers()
177 uint8 bytesPerPixel = bytesPerRow / fBitmap->Bounds().IntegerWidth(); in SwapBuffers()
187 uint8 *b = (uint8 *)fBitmap->Bits() in SwapBuffers()
207 if ((!fDirectModeEnabled || fInfo == NULL) && fBitmap) in Draw()
208 GLView()->DrawBitmap(fBitmap, updateRect, updateRect); in Draw()
216 color_space scs = fBitmap->ColorSpace(); in CopyPixelsOut()
225 BRect sr = fBitmap->Bounds(); in CopyPixelsOut()
236 uint8 *ps = (uint8 *) fBitmap->Bits(); in CopyPixelsOut()
241 s = (uint32 *)(ps + y * fBitmap->BytesPerRow()); in CopyPixelsOut()
260 color_space destinationCS = fBitmap->ColorSpace(); in CopyPixelsIn()
271 BRect dr = fBitmap->Bounds(); in CopyPixelsIn()
277 uint8 *pd = (uint8 *) fBitmap->Bits(); in CopyPixelsIn()
286 * fBitmap->BytesPerRow()); in CopyPixelsIn()
339 if (fBitmap) in _AllocateBitmap()
340 delete fBitmap; in _AllocateBitmap()
348 fBitmap = new (std::nothrow) BBitmap(rect, fColorSpace); in _AllocateBitmap()
349 if (fBitmap == NULL) { in _AllocateBitmap()
355 fBitmap->Bounds().IntegerWidth(), fBitmap->Bounds().IntegerHeight()); in _AllocateBitmap()
359 void *data = fBitmap->Bits(); in _AllocateBitmap()
360 memset(data, 0xcc, fBitmap->BitsLength()); in _AllocateBitmap()