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

Side by Side Diff: dm/DM.cpp

Issue 1180593005: call portable font cleanup only once at app end (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | tools/sk_tool_utils.h » ('j') | tools/sk_tool_utils_font.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 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 "CrashHandler.h" 8 #include "CrashHandler.h"
9 #include "DMJsonWriter.h" 9 #include "DMJsonWriter.h"
10 #include "DMSrcSink.h" 10 #include "DMSrcSink.h"
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 case kGPU_Enclave: 790 case kGPU_Enclave:
791 tg.add(run_enclave_and_gpu_tests, &enclaves[i]); 791 tg.add(run_enclave_and_gpu_tests, &enclaves[i]);
792 break; 792 break;
793 default: 793 default:
794 tg.add(run_enclave, &enclaves[i]); 794 tg.add(run_enclave, &enclaves[i]);
795 break; 795 break;
796 } 796 }
797 } 797 }
798 tg.wait(); 798 tg.wait();
799 // At this point we're back in single-threaded land. 799 // At this point we're back in single-threaded land.
800 sk_tool_utils::release_portable_typefaces();
800 801
801 SkDebugf("\n"); 802 SkDebugf("\n");
802 if (gFailures.count() > 0) { 803 if (gFailures.count() > 0) {
803 SkDebugf("Failures:\n"); 804 SkDebugf("Failures:\n");
804 for (int i = 0; i < gFailures.count(); i++) { 805 for (int i = 0; i < gFailures.count(); i++) {
805 SkDebugf("\t%s\n", gFailures[i].c_str()); 806 SkDebugf("\t%s\n", gFailures[i].c_str());
806 } 807 }
807 SkDebugf("%d failures\n", gFailures.count()); 808 SkDebugf("%d failures\n", gFailures.count());
808 return 1; 809 return 1;
809 } 810 }
810 if (gPending > 0) { 811 if (gPending > 0) {
811 SkDebugf("Hrm, we didn't seem to run everything we intended to! Please file a bug.\n"); 812 SkDebugf("Hrm, we didn't seem to run everything we intended to! Please file a bug.\n");
812 return 1; 813 return 1;
813 } 814 }
814 return 0; 815 return 0;
815 } 816 }
816 817
817 #if !defined(SK_BUILD_FOR_IOS) 818 #if !defined(SK_BUILD_FOR_IOS)
818 int main(int argc, char** argv) { 819 int main(int argc, char** argv) {
819 SkCommandLineFlags::Parse(argc, argv); 820 SkCommandLineFlags::Parse(argc, argv);
820 return dm_main(); 821 return dm_main();
821 } 822 }
822 #endif 823 #endif
OLDNEW
« no previous file with comments | « no previous file | tools/sk_tool_utils.h » ('j') | tools/sk_tool_utils_font.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698