Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Unified Diff: third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp

Issue 2822263004: Remove PaintCanvas::writePixels (Closed)
Patch Set: rm-writepixels: rmdcheck Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+}
+
sk_sp<SkImage> UnacceleratedImageBufferSurface::NewImageSnapshot(
AccelerationHint,
SnapshotReason) {

Powered by Google App Engine
This is Rietveld 408576698