4b5179b74c
skpbench is a benchmarking suite for skps that aims to generate 100% repeatable results. The initial commit consists of three parts: skpbench A minimalist program whose sole purpose is to open an skp file, benchmark it on a single config, and exit. No tiling, looping, or other fanciness is used; it just draws the skp whole into a size- matched render target and syncs the GPU after each draw. Limiting the entire process to a single config/skp pair helps to keep the results repeatable. skpbench.py A wrapper to execute the skpbench binary with various configs and skps. It also monitors the output in order to filter out and re-run results with an unacceptable stddev. In the future this script will lock down and monitor clocks and temperatures. parseskpbench.py A utility for parsing skpbench output into a spreadsheet. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2341823002 Review-Url: https://codereview.chromium.org/2341823002
31 lines
873 B
C++
31 lines
873 B
C++
|
|
/*
|
|
* Copyright 2015 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
#ifndef SkGpuFenceSync_DEFINED
|
|
#define SkGpuFenceSync_DEFINED
|
|
|
|
#include "SkTypes.h"
|
|
|
|
typedef void* SkPlatformGpuFence;
|
|
constexpr static SkPlatformGpuFence kInvalidPlatformGpuFence = nullptr;
|
|
|
|
/*
|
|
* This class provides an interface to interact with fence syncs. A fence sync is an object that the
|
|
* client can insert into the GPU command stream, and then at any future time, wait until all
|
|
* commands that were issued before the fence have completed.
|
|
*/
|
|
class SkGpuFenceSync {
|
|
public:
|
|
virtual SkPlatformGpuFence SK_WARN_UNUSED_RESULT insertFence() const = 0;
|
|
virtual bool waitFence(SkPlatformGpuFence) const = 0;
|
|
virtual void deleteFence(SkPlatformGpuFence) const = 0;
|
|
|
|
virtual ~SkGpuFenceSync() {}
|
|
};
|
|
|
|
#endif
|