diff options
Diffstat (limited to 'src/core/SkBitmapDevice.cpp')
-rw-r--r-- | src/core/SkBitmapDevice.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp index 020f1da13b..9df7c9b655 100644 --- a/src/core/SkBitmapDevice.cpp +++ b/src/core/SkBitmapDevice.cpp @@ -127,6 +127,10 @@ void SkBitmapDevice::unlockPixels() { } } +void SkBitmapDevice::clear(SkColor color) { + fBitmap.eraseColor(color); +} + const SkBitmap& SkBitmapDevice::onAccessBitmap() { return fBitmap; } |