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

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

Issue 2743363006: Clean up cc/paint interfaces (Closed)
Patch Set: Fix PaintControllerTest v2 Created 3 years, 9 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/ImageBuffer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
index 99ca5209e4bbbe0a7d81c64943e4479e2843133b..4e8a92b4db7f35c194fb626cc306b94c37dfe78a 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
@@ -570,7 +570,7 @@ void ImageBuffer::setSurface(std::unique_ptr<ImageBufferSurface> surface) {
// will fail at playback time.
image = image->makeNonTextureImage();
}
- surface->canvas()->drawImage(image.get(), 0, 0);
+ surface->canvas()->drawImage(std::move(image), 0, 0);
surface->setImageBuffer(this);
if (m_client)

Powered by Google App Engine
This is Rietveld 408576698