a9e9bfc6e4
This was always intended to be a temporary dependency to use for testing. It has served its purpose. Also, this has already been dropped (accidentally, I think) by the new GN build. TBR=reed@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4220 Change-Id: Ic72ee08bbfaf86ed86a4122fd38be2921eb1327e Reviewed-on: https://skia-review.googlesource.com/4220 Reviewed-by: Matt Sarett <msarett@google.com> Reviewed-by: Leon Scroggins <scroggo@google.com> Commit-Queue: Matt Sarett <msarett@google.com>
41 lines
973 B
C++
41 lines
973 B
C++
/*
|
|
* Copyright 2016 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef ColorCodecBench_DEFINED
|
|
#define ColorCodecBench_DEFINED
|
|
|
|
#include "Benchmark.h"
|
|
#include "SkData.h"
|
|
#include "SkImageInfo.h"
|
|
|
|
class ColorCodecBench : public Benchmark {
|
|
public:
|
|
ColorCodecBench(const char* name, sk_sp<SkData> encoded);
|
|
|
|
protected:
|
|
const char* onGetName() override;
|
|
bool isSuitableFor(Backend backend) override;
|
|
void onDraw(int n, SkCanvas* canvas) override;
|
|
void onDelayedSetup() override;
|
|
|
|
private:
|
|
void decodeAndXform();
|
|
void xformOnly();
|
|
|
|
SkString fName;
|
|
sk_sp<SkData> fEncoded;
|
|
SkImageInfo fSrcInfo;
|
|
SkImageInfo fDstInfo;
|
|
SkAutoMalloc fDst;
|
|
SkAutoMalloc fSrc;
|
|
sk_sp<SkColorSpace> fDstSpace;
|
|
sk_sp<SkColorSpace> fSrcSpace;
|
|
|
|
typedef Benchmark INHERITED;
|
|
};
|
|
#endif // ColorCodecBench_DEFINED
|