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

Side by Side Diff: tools/flags/SkCommonFlags.cpp

Issue 1852733002: Add GrContext::releaseAndAbandonContext() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix no-gpu build, add null check, add unit test" Created 4 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 | « tools/flags/SkCommonFlags.h ('k') | tools/gpu/GrContextFactory.h » ('j') | 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 2014 Google Inc. 2 * Copyright 2014 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 "SkCommonFlags.h" 8 #include "SkCommonFlags.h"
9 #include "SkOSFile.h" 9 #include "SkOSFile.h"
10 10
(...skipping 12 matching lines...) Expand all
23 "Multiple matches may be separated by spaces.\n" 23 "Multiple matches may be separated by spaces.\n"
24 "~ causes a matching GM to always be skipped\n" 24 "~ causes a matching GM to always be skipped\n"
25 "^ requires the start of the GM to match\n" 25 "^ requires the start of the GM to match\n"
26 "$ requires the end of the GM to match\n" 26 "$ requires the end of the GM to match\n"
27 "^ and $ requires an exact match\n" 27 "^ and $ requires an exact match\n"
28 "If a GM does not match any list entry,\n" 28 "If a GM does not match any list entry,\n"
29 "it is skipped unless some list entry starts with ~"); 29 "it is skipped unless some list entry starts with ~");
30 30
31 DEFINE_bool2(quiet, q, false, "if true, don't print status updates."); 31 DEFINE_bool2(quiet, q, false, "if true, don't print status updates.");
32 32
33 DEFINE_bool(preAbandonGpuContext, false, "Abandons the GrContext before running the test."); 33 DEFINE_bool(preAbandonGpuContext, false, "Test abandoning the GrContext before r unning the test.");
34 34
35 DEFINE_bool(abandonGpuContext, false, "Abandon the GrContext after running each test."); 35 DEFINE_bool(abandonGpuContext, false, "Test abandoning the GrContext after runni ng each test.");
36
37 DEFINE_bool(releaseAndAbandonGpuContext, false,
38 "Test releasing all gpu resources and abandoning the GrContext after running each "
39 "test");
36 40
37 DEFINE_string(skps, "skps", "Directory to read skps from."); 41 DEFINE_string(skps, "skps", "Directory to read skps from.");
38 42
39 DEFINE_int32(threads, -1, "Run threadsafe tests on a threadpool with this many e xtra threads, " 43 DEFINE_int32(threads, -1, "Run threadsafe tests on a threadpool with this many e xtra threads, "
40 "defaulting to one extra thread per core."); 44 "defaulting to one extra thread per core.");
41 45
42 DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver."); 46 DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver.");
43 47
44 DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose."); 48 DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose.");
45 49
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 SkDebugf("No supported images found in %s!\n", flag); 89 SkDebugf("No supported images found in %s!\n", flag);
86 return false; 90 return false;
87 } 91 }
88 } else { 92 } else {
89 // Also add the value if it is a single image 93 // Also add the value if it is a single image
90 output->push_back() = flag; 94 output->push_back() = flag;
91 } 95 }
92 } 96 }
93 return true; 97 return true;
94 } 98 }
OLDNEW
« no previous file with comments | « tools/flags/SkCommonFlags.h ('k') | tools/gpu/GrContextFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698