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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp

Issue 2716203002: blink: Fix cc/paint skia type mismatches (Closed)
Patch Set: Fix canvas Created 3 years, 10 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/core/inspector/InspectorLayerTreeAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
index b052966d343c2c30ebc0bf8b6d51233a37282fcd..075d5700e37759a9e7c9b8085b0af42c5f7d0c2d 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
@@ -372,7 +372,7 @@ Response InspectorLayerTreeAgent::makeSnapshot(const String& layerId,
context.beginRecording(interestRect);
layer->getPaintController().paintArtifact().replay(context);
RefPtr<PictureSnapshot> snapshot =
- adoptRef(new PictureSnapshot(context.endRecording()));
+ adoptRef(new PictureSnapshot(ToSkPicture(context.endRecording())));
*snapshotId = String::number(++s_lastSnapshotId);
bool newEntry = m_snapshotById.insert(*snapshotId, snapshot).isNewEntry;

Powered by Google App Engine
This is Rietveld 408576698