Rename GrContextOption fReduceOpListSplitting to fReduceOpsTaskSplitting.
Change-Id: Ieba56fa4c4926fc0a118d84950fa1eb78a48a29e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/236576 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com> Auto-Submit: Greg Daniel <egdaniel@google.com>
This commit is contained in:
parent
359f61b101
commit
9313874349
@ -160,7 +160,7 @@ struct SK_API GrContextOptions {
|
||||
* Allow Ganesh to more aggressively reorder operations.
|
||||
* Eventually this will just be what is done and will not be optional.
|
||||
*/
|
||||
Enable fReduceOpListSplitting = Enable::kDefault;
|
||||
Enable fReduceOpsTaskSplitting = Enable::kDefault;
|
||||
|
||||
/**
|
||||
* Some ES3 contexts report the ES2 external image extension, but not the ES3 version.
|
||||
|
@ -83,9 +83,9 @@ protected:
|
||||
}
|
||||
|
||||
bool reduceOpsTaskSplitting = kDefaultReduceOpsTaskSplitting;
|
||||
if (GrContextOptions::Enable::kNo == this->options().fReduceOpListSplitting) {
|
||||
if (GrContextOptions::Enable::kNo == this->options().fReduceOpsTaskSplitting) {
|
||||
reduceOpsTaskSplitting = false;
|
||||
} else if (GrContextOptions::Enable::kYes == this->options().fReduceOpListSplitting) {
|
||||
} else if (GrContextOptions::Enable::kYes == this->options().fReduceOpsTaskSplitting) {
|
||||
reduceOpsTaskSplitting = true;
|
||||
}
|
||||
|
||||
|
@ -366,7 +366,7 @@ DEF_GPUTEST(GrManyDependentsMipMappedTest, reporter, /* options */) {
|
||||
GrMockOptions mockOptions;
|
||||
mockOptions.fMipMapSupport = true;
|
||||
GrContextOptions ctxOptions;
|
||||
ctxOptions.fReduceOpListSplitting = enableSortingAndReduction;
|
||||
ctxOptions.fReduceOpsTaskSplitting = enableSortingAndReduction;
|
||||
sk_sp<GrContext> context = GrContext::MakeMock(&mockOptions, ctxOptions);
|
||||
if (!context) {
|
||||
ERRORF(reporter, "could not create mock context with fReduceOpsTaskSplitting %s.",
|
||||
|
@ -91,8 +91,8 @@ void SetCtxOptionsFromCommonFlags(GrContextOptions* ctxOptions) {
|
||||
|
||||
if (FLAGS_reduceOpsTaskSplitting) {
|
||||
SkASSERT(!FLAGS_dontReduceOpsTaskSplitting);
|
||||
ctxOptions->fReduceOpListSplitting = GrContextOptions::Enable::kYes;
|
||||
ctxOptions->fReduceOpsTaskSplitting = GrContextOptions::Enable::kYes;
|
||||
} else if (FLAGS_dontReduceOpsTaskSplitting) {
|
||||
ctxOptions->fReduceOpListSplitting = GrContextOptions::Enable::kNo;
|
||||
ctxOptions->fReduceOpsTaskSplitting = GrContextOptions::Enable::kNo;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user