f21bf9e50b
This reverts commit 2a5954140b
.
Reason for revert: breaking everything
Original change's description:
> Merge GrOpList and GrRTOpList and rename to GrOpsTask.
>
> Change-Id: I8f4f2218a30fd0541a8f79f7bb9850f9500cd243
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/236343
> Commit-Queue: Greg Daniel <egdaniel@google.com>
> Reviewed-by: Brian Salomon <bsalomon@google.com>
TBR=egdaniel@google.com,bsalomon@google.com,robertphillips@google.com
Change-Id: I27840ea0343e8e6b388556afb7bd2e76386d611d
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/236349
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
/*
|
|
* Copyright 2014 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
#pragma once
|
|
|
|
#include "include/core/SkString.h"
|
|
#include "include/private/SkTArray.h"
|
|
#include "tools/flags/CommandLineFlags.h"
|
|
|
|
/**
|
|
* Helper to assist in collecting image paths from |dir| specified through a command line
|
|
* flag.
|
|
*
|
|
* Populates |output|, an array of strings with paths to images to test.
|
|
*
|
|
* Returns true if each argument to the images flag is meaningful:
|
|
* - If the file/directory does not exist, return false.
|
|
* - If |dir| does not have any supported images (based on file type), return false.
|
|
* - If |dir| is a single file, assume the user is deliberately testing this image,
|
|
* regardless of file type.
|
|
*/
|
|
bool CollectImages(CommandLineFlags::StringArray dir, SkTArray<SkString>* output);
|
|
|
|
/**
|
|
* Helper to set GrContextOptions from common GPU flags, including
|
|
* --gpuThreads
|
|
* --cachePathMasks
|
|
* --noGS
|
|
* --pr
|
|
* --disableDriverCorrectnessWorkarounds
|
|
* --reduceOpListSplitting
|
|
* --dontReduceOpListSplitting
|
|
*/
|
|
void SetCtxOptionsFromCommonFlags(struct GrContextOptions*);
|
|
|
|
/**
|
|
* Enable, disable, or force analytic anti-aliasing using --analyticAA and --forceAnalyticAA.
|
|
*/
|
|
void SetAnalyticAAFromCommonFlags();
|