Chromium Code Reviews| Index: third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp |
| diff --git a/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp b/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp |
| index ce38fa85d82c6be14ad50144dbf07182d8c8a9a9..64a496b5eec78a9fbaa6b112df055d778b6a574a 100644 |
| --- a/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp |
| +++ b/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp |
| @@ -73,6 +73,14 @@ bool UnacceleratedImageBufferSurface::IsValid() const { |
| return surface_; |
| } |
| +bool UnacceleratedImageBufferSurface::WritePixels(const SkImageInfo& orig_info, |
| + const void* pixels, |
| + size_t row_bytes, |
| + int x, |
| + int y) { |
| + return surface_->getCanvas()->writePixels(orig_info, pixels, row_bytes, x, y); |
|
xlai (Olivia)
2017/04/19 21:13:41
You put a DCHECK(surface_) in AcceleratedImageBuff
danakj
2017/04/19 21:19:05
Oh, I cargoculted that TBH it shouldn't matter in
|
| +} |
| + |
| sk_sp<SkImage> UnacceleratedImageBufferSurface::NewImageSnapshot( |
| AccelerationHint, |
| SnapshotReason) { |