diff options
author | Brian Salomon <bsalomon@google.com> | 2017-07-14 12:00:43 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-14 17:23:34 +0000 |
commit | 8abb9f45379823f417371d3e99f42629fbccd579 (patch) | |
tree | e297fe379ae89286fa3c641456a8e82dc16fbb52 /src | |
parent | fc4ee229a653d0e9d71f828e513c9d458c1eab57 (diff) |
Remove GrTestMeshDrawOp
Change-Id: If7465391b5e704b16b3ded2a73fafe088e2ea8e0
Reviewed-on: https://skia-review.googlesource.com/23384
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/ops/GrTestMeshDrawOp.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/gpu/ops/GrTestMeshDrawOp.h b/src/gpu/ops/GrTestMeshDrawOp.h deleted file mode 100644 index aad6774eb2..0000000000 --- a/src/gpu/ops/GrTestMeshDrawOp.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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 GrTestMeshDrawOp_DEFINED -#define GrTestMeshDrawOp_DEFINED - -#include "GrGeometryProcessor.h" -#include "GrOpFlushState.h" - -#include "ops/GrMeshDrawOp.h" - -/* - * A simple solid color GrLegacyMeshDrawOp for testing purposes which doesn't ever combine. - * Subclassing this in tests saves having to fill out some boiler plate methods. - */ -class GrTestMeshDrawOp : public GrLegacyMeshDrawOp { -public: - const char* name() const override = 0; - -protected: - GrTestMeshDrawOp(uint32_t classID, const SkRect& bounds, GrColor color) - : INHERITED(classID), fColor(color) { - // Choose some conservative values for aa bloat and zero area. - this->setBounds(bounds, HasAABloat::kYes, IsZeroArea::kYes); - } - - GrColor color() const { return fColor; } - - bool usesLocalCoords() const { return fUsesLocalCoords; } - -private: - void getProcessorAnalysisInputs(GrProcessorAnalysisColor* color, - GrProcessorAnalysisCoverage* coverage) const override { - color->setToConstant(fColor); - *coverage = GrProcessorAnalysisCoverage::kSingleChannel; - } - - void applyPipelineOptimizations(const PipelineOptimizations& optimizations) override { - optimizations.getOverrideColorIfSet(&fColor); - fUsesLocalCoords = optimizations.readsLocalCoords(); - } - - bool onCombineIfPossible(GrOp*, const GrCaps&) override { return false; } - - GrColor fColor; - bool fUsesLocalCoords = false; - - typedef GrLegacyMeshDrawOp INHERITED; -}; - -#endif |