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

Side by Side Diff: dm/DM.cpp

Issue 1054073003: Minimal Changes to run tests on iOS (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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 | experimental/iOSSampleApp/Shared/skia_ios.mm » ('j') | src/core/SkImageFilter.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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 run_test(&gGPUTests[i]); 604 run_test(&gGPUTests[i]);
605 } 605 }
606 } 606 }
607 607
608 // Some runs (mostly, Valgrind) are so slow that the bot framework thinks we've hung. 608 // Some runs (mostly, Valgrind) are so slow that the bot framework thinks we've hung.
609 // This prints something every once in a while so that it knows we're still work ing. 609 // This prints something every once in a while so that it knows we're still work ing.
610 static void start_keepalive() { 610 static void start_keepalive() {
611 struct Loop { 611 struct Loop {
612 static void forever(void*) { 612 static void forever(void*) {
613 for (;;) { 613 for (;;) {
614 static const int kSec = 300; 614 static const int kSec = 5;
stephana 2015/04/07 18:32:34 This change is being removed before landing - just
615 #if defined(SK_BUILD_FOR_WIN) 615 #if defined(SK_BUILD_FOR_WIN)
616 Sleep(kSec * 1000); 616 Sleep(kSec * 1000);
617 #else 617 #else
618 sleep(kSec); 618 sleep(kSec);
619 #endif 619 #endif
620 SkString running; 620 SkString running;
621 { 621 {
622 SkAutoMutexAcquire lock(gRunningMutex); 622 SkAutoMutexAcquire lock(gRunningMutex);
623 for (int i = 0; i < gRunning.count(); i++) { 623 for (int i = 0; i < gRunning.count(); i++) {
624 running.appendf("\n\t%s", gRunning[i].c_str()); 624 running.appendf("\n\t%s", gRunning[i].c_str());
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 } 698 }
699 return 0; 699 return 0;
700 } 700 }
701 701
702 #if !defined(SK_BUILD_FOR_IOS) 702 #if !defined(SK_BUILD_FOR_IOS)
703 int main(int argc, char** argv) { 703 int main(int argc, char** argv) {
704 SkCommandLineFlags::Parse(argc, argv); 704 SkCommandLineFlags::Parse(argc, argv);
705 return dm_main(); 705 return dm_main();
706 } 706 }
707 #endif 707 #endif
OLDNEW
« no previous file with comments | « no previous file | experimental/iOSSampleApp/Shared/skia_ios.mm » ('j') | src/core/SkImageFilter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698