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

Side by Side Diff: tools/filtermain.cpp

Issue 745383003: add some debugging to SkNVRefCnt (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix bench Created 6 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 unified diff | Download patch
« no previous file with comments | « tests/RecordingXfermodeTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkDebugCanvas.h" 8 #include "SkDebugCanvas.h"
9 #include "SkDevice.h" 9 #include "SkDevice.h"
10 #include "SkForceLinking.h" 10 #include "SkForceLinking.h"
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 { check_4, apply_4, 0 }, 654 { check_4, apply_4, 0 },
655 { check_5, apply_5, 0 }, 655 { check_5, apply_5, 0 },
656 { check_6, apply_6, 0 }, 656 { check_6, apply_6, 0 },
657 { check_7, apply_7, 0 }, 657 { check_7, apply_7, 0 },
658 { check_8, apply_8, 0 }, 658 { check_8, apply_8, 0 },
659 { check_9, apply_9, 0 }, 659 { check_9, apply_9, 0 },
660 }; 660 };
661 661
662 662
663 static int filter_picture(const SkString& inFile, const SkString& outFile) { 663 static int filter_picture(const SkString& inFile, const SkString& outFile) {
664 SkAutoTDelete<SkPicture> inPicture; 664 SkAutoTUnref<SkPicture> inPicture;
665 665
666 SkFILEStream inStream(inFile.c_str()); 666 SkFILEStream inStream(inFile.c_str());
667 if (inStream.isValid()) { 667 if (inStream.isValid()) {
668 inPicture.reset(SkPicture::CreateFromStream(&inStream)); 668 inPicture.reset(SkPicture::CreateFromStream(&inStream));
669 } 669 }
670 670
671 if (NULL == inPicture.get()) { 671 if (NULL == inPicture.get()) {
672 SkDebugf("Could not read file %s\n", inFile.c_str()); 672 SkDebugf("Could not read file %s\n", inFile.c_str());
673 return -1; 673 return -1;
674 } 674 }
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 839
840 SkGraphics::Term(); 840 SkGraphics::Term();
841 return 0; 841 return 0;
842 } 842 }
843 843
844 #if !defined SK_BUILD_FOR_IOS 844 #if !defined SK_BUILD_FOR_IOS
845 int main(int argc, char * const argv[]) { 845 int main(int argc, char * const argv[]) {
846 return tool_main(argc, (char**) argv); 846 return tool_main(argc, (char**) argv);
847 } 847 }
848 #endif 848 #endif
OLDNEW
« no previous file with comments | « tests/RecordingXfermodeTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698