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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.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/GraphicsContext.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
index be8cab138964acf9a47307b39c97dc8194edd8f6..3b9c1c0d7374661fd454b718ba149e6227f347c6 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
@@ -297,12 +297,12 @@ sk_sp<PaintRecord> GraphicsContext::endRecording() {
return record;
}
-void GraphicsContext::drawRecord(const PaintRecord* record) {
+void GraphicsContext::drawRecord(sk_sp<const PaintRecord> record) {
if (contextDisabled() || !record || record->cullRect().isEmpty())
return;
DCHECK(m_canvas);
- m_canvas->drawPicture(record);
+ m_canvas->drawPicture(std::move(record));
}
void GraphicsContext::compositeRecord(sk_sp<PaintRecord> record,

Powered by Google App Engine
This is Rietveld 408576698