Lines Matching refs:SkSurface_Raster
16 class SkSurface_Raster : public SkSurface_Base {
20 SkSurface_Raster(const SkImageInfo&, void*, size_t rb,
23 SkSurface_Raster(SkPixelRef*, const SkSurfaceProps*);
42 bool SkSurface_Raster::Valid(const SkImageInfo& info, size_t rowBytes) {
89 SkSurface_Raster::SkSurface_Raster(const SkImageInfo& info, void* pixels, size_t rb,
99 SkSurface_Raster::SkSurface_Raster(SkPixelRef* pr, const SkSurfaceProps* props)
110 SkCanvas* SkSurface_Raster::onNewCanvas() { return new SkCanvas(fBitmap, this->props()); }
112 SkSurface* SkSurface_Raster::onNewSurface(const SkImageInfo& info) {
116 void SkSurface_Raster::onDraw(SkCanvas* canvas, SkScalar x, SkScalar y,
121 SkImage* SkSurface_Raster::onNewImageSnapshot(SkBudgeted, ForceCopyMode forceCopyMode) {
137 void SkSurface_Raster::onRestoreBackingMutability() {
144 void SkSurface_Raster::onCopyOnWrite(ContentChangeMode mode) {
178 if (!SkSurface_Raster::Valid(info, rb)) {
185 return new SkSurface_Raster(info, pixels, rb, releaseProc, context, props);
195 if (!SkSurface_Raster::Valid(info)) {
206 return new SkSurface_Raster(pr, props);