6e2aad4e9f
Like abandonContext() this disconnects the GrContext from the underlying 3D API. However, unlike abandonContext it first frees all allocated GPU resources. BUG=skia:5142 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1852733002 Review URL: https://codereview.chromium.org/1852733002
51 lines
1.3 KiB
C
51 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.
|
|
*/
|
|
|
|
#ifndef SK_COMMON_FLAGS_H
|
|
#define SK_COMMON_FLAGS_H
|
|
|
|
#include "../private/SkTArray.h"
|
|
#include "SkCommandLineFlags.h"
|
|
#include "SkString.h"
|
|
|
|
DECLARE_bool(cpu);
|
|
DECLARE_bool(dryRun);
|
|
DECLARE_bool(gpu);
|
|
DECLARE_string(images);
|
|
DECLARE_string(match);
|
|
DECLARE_bool(quiet);
|
|
DECLARE_bool(resetGpuContext);
|
|
DECLARE_bool(preAbandonGpuContext);
|
|
DECLARE_bool(abandonGpuContext);
|
|
DECLARE_bool(releaseAndAbandonGpuContext);
|
|
DECLARE_string(skps);
|
|
DECLARE_int32(threads);
|
|
DECLARE_string(resourcePath);
|
|
DECLARE_bool(verbose);
|
|
DECLARE_bool(veryVerbose);
|
|
DECLARE_string(writePath);
|
|
DECLARE_bool(pre_log);
|
|
|
|
DECLARE_string(key);
|
|
DECLARE_string(properties);
|
|
|
|
/**
|
|
* Helper to assist in collecting image paths from --images.
|
|
*
|
|
* Populates an array of strings with paths to images to test.
|
|
*
|
|
* Returns true if each argument to --images is meaningful:
|
|
* - If the file/directory does not exist, return false.
|
|
* - If a directory passed to --images does not have any supported images (based on file
|
|
* type), return false.
|
|
* - If a file is passed to --images, assume the user is deliberately testing this image,
|
|
* regardless of file type.
|
|
*/
|
|
bool CollectImages(SkTArray<SkString>*);
|
|
|
|
#endif
|