Home | History | Annotate | Download | only in mac

Lines Matching refs:buffer

108 static PassRefPtr<BitmapContext> createBitmapContext(size_t pixelsWide, size_t pixelsHigh, size_t& rowBytes, void*& buffer)
112 buffer = calloc(pixelsHigh, rowBytes);
113 if (!buffer)
128 CGContextRef context = CGBitmapContextCreate(buffer, pixelsWide, pixelsHigh, 8, rowBytes, colorSpace, kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host); // Use ARGB8 on PPC or BGRA8 on X86 to improve CG performance
130 free(buffer);
134 return BitmapContext::createByAdoptingBitmapAndContext(buffer, context);
150 void* buffer = 0;
151 RefPtr<BitmapContext> bitmapContext = createBitmapContext(pixelsWide, pixelsHigh, rowBytes, buffer);
222 bcopy((char*)flipBuffer + rowBytes * i, (char*)buffer + rowBytes * (pixelsHigh - i - 1), pixelsWide * 4);
241 // Grab directly the contents of the window backing buffer (this ignores any surfaces on the window)
274 void* buffer = 0;
276 RefPtr<BitmapContext> bitmapContext = createBitmapContext(pageWidthInPixels, numberOfPages * (pageHeightInPixels + 1) - 1, rowBytes, buffer);