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

Unified Diff: sky/shell/gpu/rasterizer.cc

Issue 1235813005: Add machinery for dumping SkPictures to disk (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « sky/shell/gpu/picture_serializer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/gpu/rasterizer.cc
diff --git a/sky/shell/gpu/rasterizer.cc b/sky/shell/gpu/rasterizer.cc
index 4d4ded4aa4fe97094aa32983e145efedc5afe580..f679b8f813c73a76a4c538ff8c68566d4cac6e01 100644
--- a/sky/shell/gpu/rasterizer.cc
+++ b/sky/shell/gpu/rasterizer.cc
@@ -7,6 +7,7 @@
#include "base/trace_event/trace_event.h"
#include "sky/shell/gpu/ganesh_context.h"
#include "sky/shell/gpu/ganesh_surface.h"
+#include "sky/shell/gpu/picture_serializer.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkPicture.h"
#include "ui/gl/gl_bindings.h"
@@ -58,6 +59,8 @@ void Rasterizer::Draw(skia::RefPtr<SkPicture> picture) {
DrawPicture(picture.get());
surface_->SwapBuffers();
+
+ // SerializePicture("/data/data/org.domokit.sky.demo/cache/layer0.skp", picture.get());
}
void Rasterizer::DrawPicture(SkPicture* picture) {
« no previous file with comments | « sky/shell/gpu/picture_serializer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698