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

Unified Diff: tests/PathOpsSkpClipTest.cpp

Issue 15338003: path ops -- rewrite angle sort (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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 | « tests/PathOpsSimplifyTest.cpp ('k') | tests/PathOpsTestCommon.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathOpsSkpClipTest.cpp
===================================================================
--- tests/PathOpsSkpClipTest.cpp (revision 9425)
+++ tests/PathOpsSkpClipTest.cpp (working copy)
@@ -1,6 +1,7 @@
#include "SkBitmap.h"
#include "SkDevice.h"
#include "SkCanvas.h"
+#include "SkImageDecoder.h"
#include "SkImageEncoder.h"
#include "SkStream.h"
#include "SkOSFile.h"
@@ -18,14 +19,14 @@
}
static void PathOpsSkpClipTest(skiatest::Reporter* reporter) {
-const char pictDir[] = "C:\\Users\\caryclark\\skp";
- const char outSkpClipDir[] = "C:\\Users\\caryclark\\skpClip";
- const char outOldClipDir[] = "C:\\Users\\caryclark\\oldClip";
+ const char pictDir[] = "D:\\skp";
+ const char outSkpClipDir[] = "D:\\skpClip";
+ const char outOldClipDir[] = "D:\\oldClip";
SkOSFile::Iter iter(pictDir, "skp");
SkString filename;
while (iter.next(&filename)) {
-#if 0
- if (strcmp(filename.c_str(), "tabl_androidpolice.skp")) {
+#if 01
+ if (strcmp(filename.c_str(), "desk_15min-lt.skp")) {
continue;
}
#endif
@@ -35,7 +36,11 @@
if (!stream.isValid()) {
continue;
}
- SkPicture* pic = SkNEW_ARGS(SkPicture, (&stream));
+ bool success;
+ SkPicture* pic = SkNEW_ARGS(SkPicture, (&stream, &success, &SkImageDecoder::DecodeMemory));
+ if (!success) {
+ continue;
+ }
int width = pic->width();
int height = pic->height();
SkBitmap bitmap;
« no previous file with comments | « tests/PathOpsSimplifyTest.cpp ('k') | tests/PathOpsTestCommon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698