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

Unified Diff: samplecode/SamplePictFile.cpp

Issue 23463040: update devicelooper to skip internal tiles that are empty, and unittests (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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 | « include/core/SkSurface.h ('k') | src/core/SkDeviceLooper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SamplePictFile.cpp
diff --git a/samplecode/SamplePictFile.cpp b/samplecode/SamplePictFile.cpp
index 867118dee30c1de7766caa2193d41e98bd2225d4..b8298d4e19d2f34695adeab724a383147df01da7 100644
--- a/samplecode/SamplePictFile.cpp
+++ b/samplecode/SamplePictFile.cpp
@@ -27,6 +27,7 @@
#include "SkXfermode.h"
#include "SkStream.h"
+#include "SkSurface.h"
#include "SkXMLParser.h"
class PictFileView : public SampleView {
@@ -53,6 +54,11 @@ class PictFileView : public SampleView {
SkDebugf("coun't load picture at \"path\"\n", path);
}
+ if (false) {
+ SkSurface* surf = SkSurface::NewRasterPMColor(pic->width(), pic->height());
+ surf->getCanvas()->drawPicture(*pic);
+ surf->unref();
+ }
if (false) { // re-record
SkPicture p2;
pic->draw(p2.beginRecording(pic->width(), pic->height()));
« no previous file with comments | « include/core/SkSurface.h ('k') | src/core/SkDeviceLooper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698