//////////////////////////////////////////////////////////////////////// SurfaceImage
| 176 | ///////////////////////////////////////////////////////////////////////////// |
| 177 | // SurfaceImage |
| 178 | SurfaceImage::SurfaceImage( int32_t width, int32_t height, bool hasAlpha ) |
| 179 | : SurfaceBase( width, height ) |
| 180 | { |
| 181 | if( hasAlpha ) { |
| 182 | mCairoSurface = cairo_image_surface_create( CAIRO_FORMAT_ARGB32, width, height ); |
| 183 | } |
| 184 | else { |
| 185 | mCairoSurface = cairo_image_surface_create( CAIRO_FORMAT_RGB24, width, height ); |
| 186 | } |
| 187 | |
| 188 | initCinderSurface( hasAlpha, mCairoSurface ); |
| 189 | } |
| 190 | |
| 191 | SurfaceImage::SurfaceImage( const uint8_t *dataPtr, int32_t width, int32_t height, int32_t stride, bool hasAlpha ) |
| 192 | : SurfaceBase( width, height ) |
nothing calls this directly
no test coverage detected