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

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

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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 eb7d4ef89816d22d1372f867206102381ad3590c..5b19ca25fff1e3cd7054ba7af75dac039a0bffd6 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
@@ -373,7 +373,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().get())));
*snapshotId = String::number(++s_lastSnapshotId);
bool newEntry = m_snapshotById.add(*snapshotId, snapshot).isNewEntry;

Powered by Google App Engine
This is Rietveld 408576698