- // Utility functions that transparently create a temporary bitmap and copy
- // pixels to buffer when necessary.
- static void AcquireBitmapForBuffer(SkBitmap* bitmap,
- uint8_t* buffer,
- ResourceFormat format,
- const gfx::Size& size,
- int stride);
- static void ReleaseBitmapForBuffer(SkBitmap* bitmap,
- uint8_t* buffer,
- ResourceFormat format);
+ // Utility function that will create a temporary bitmap and copy pixels to
+ // |memory| when necessary.
+ static void PlaybackToMemory(void* memory,
+ ResourceFormat format,
+ const gfx::Size& size,
+ int stride,
+ const RasterSource* raster_source,
+ const gfx::Rect& rect,
+ float scale);