Lines Matching defs:SkSurface_Raster
16 class SkSurface_Raster : public SkSurface_Base {
20 SkSurface_Raster(const SkImageInfo&, void*, size_t rb,
23 SkSurface_Raster(sk_sp<SkPixelRef>, const SkSurfaceProps*);
42 bool SkSurface_Raster::Valid(const SkImageInfo& info, size_t rowBytes) {
101 SkSurface_Raster::SkSurface_Raster(const SkImageInfo& info, void* pixels, size_t rb,
111 SkSurface_Raster::SkSurface_Raster(sk_sp<SkPixelRef> pr, const SkSurfaceProps* props)
122 SkCanvas* SkSurface_Raster::onNewCanvas() { return new SkCanvas(fBitmap, this->props()); }
124 sk_sp<SkSurface> SkSurface_Raster::onNewSurface(const SkImageInfo& info) {
128 void SkSurface_Raster::onDraw(SkCanvas* canvas, SkScalar x, SkScalar y,
133 sk_sp<SkImage> SkSurface_Raster::onNewImageSnapshot() {
150 void SkSurface_Raster::onRestoreBackingMutability() {
157 void SkSurface_Raster::onCopyOnWrite(ContentChangeMode mode) {
191 if (!SkSurface_Raster::Valid(info, rb)) {
198 return sk_make_sp<SkSurface_Raster>(info, pixels, rb, releaseProc, context, props);
208 if (!SkSurface_Raster::Valid(info)) {
219 return sk_make_sp<SkSurface_Raster>(std::move(pr), props);