Home | History | Annotate | Download | only in image

Lines Matching refs:info

18     static bool Valid(const SkImage::Info&, size_t rb = kIgnoreRowBytesValue);
20 SkSurface_Raster(const SkImage::Info&, void*, size_t rb);
21 SkSurface_Raster(const SkImage::Info&, SkPixelRef*, size_t rb);
24 virtual SkSurface* onNewSurface(const SkImage::Info&) SK_OVERRIDE;
39 bool SkSurface_Raster::Valid(const SkImage::Info& info, size_t rowBytes) {
43 SkBitmap::Config config = SkImageInfoToBitmapConfig(info, &isOpaque);
66 uint64_t minRB = (uint64_t)info.fWidth << shift;
76 uint64_t size = (uint64_t)info.fHeight * rowBytes;
84 SkSurface_Raster::SkSurface_Raster(const SkImage::Info& info, void* pixels, size_t rb)
85 : INHERITED(info.fWidth, info.fHeight) {
87 SkBitmap::Config config = SkImageInfoToBitmapConfig(info, &isOpaque);
89 fBitmap.setConfig(config, info.fWidth, info.fHeight, rb);
95 SkSurface_Raster::SkSurface_Raster(const SkImage::Info& info, SkPixelRef* pr, size_t rb)
96 : INHERITED(info.fWidth, info.fHeight) {
98 SkBitmap::Config config = SkImageInfoToBitmapConfig(info, &isOpaque);
100 fBitmap.setConfig(config, info.fWidth, info.fHeight, rb);
114 SkSurface* SkSurface_Raster::onNewSurface(const SkImage::Info& info) {
115 return SkSurface::NewRaster(info);
149 SkSurface* SkSurface::NewRasterDirect(const SkImage::Info& info, void* pixels, size_t rowBytes) {
150 if (!SkSurface_Raster::Valid(info, rowBytes)) {
157 return SkNEW_ARGS(SkSurface_Raster, (info, pixels, rowBytes));
160 SkSurface* SkSurface::NewRaster(const SkImage::Info& info) {
161 if (!SkSurface_Raster::Valid(info)) {
166 size_t rowBytes = SkImageMinRowBytes(info);
167 uint64_t size64 = (uint64_t)info.fHeight * rowBytes;
179 return SkNEW_ARGS(SkSurface_Raster, (info, pr, rowBytes));