diff options
author | Robert Phillips <robertphillips@google.com> | 2017-08-09 13:31:36 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-09 18:11:34 +0000 |
commit | b681a0f1b0acebe36130fd463d14016d48295b97 (patch) | |
tree | b069332fad7ccacb29ed0c080c4d423824ae7e0f /src/gpu/ops | |
parent | c270423de16f54af26147280c406b8b74ab07046 (diff) |
Store discard request on the opList and remove GrDiscardOp
Change-Id: Ic1f76bb91c16b23df1fe71c07a4d5ad5abf1dc26
Reviewed-on: https://skia-review.googlesource.com/32640
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/ops')
-rw-r--r-- | src/gpu/ops/GrDiscardOp.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/gpu/ops/GrDiscardOp.h b/src/gpu/ops/GrDiscardOp.h deleted file mode 100644 index d30aa5a8c5..0000000000 --- a/src/gpu/ops/GrDiscardOp.h +++ /dev/null @@ -1,48 +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 GrDiscardOp_DEFINED -#define GrDiscardOp_DEFINED - -#include "GrGpuCommandBuffer.h" -#include "GrOp.h" -#include "GrOpFlushState.h" -#include "GrRenderTargetProxy.h" - -class GrDiscardOp final : public GrOp { -public: - DEFINE_OP_CLASS_ID - - static std::unique_ptr<GrOp> Make(GrRenderTargetProxy* proxy) { - return std::unique_ptr<GrOp>(new GrDiscardOp(proxy)); - } - - const char* name() const override { return "Discard"; } - - SkString dumpInfo() const override { - SkString string; - string.append(INHERITED::dumpInfo()); - return string; - } - -private: - GrDiscardOp(GrRenderTargetProxy* proxy) : INHERITED(ClassID()) { - this->makeFullScreen(proxy); - } - - bool onCombineIfPossible(GrOp* that, const GrCaps& caps) override { return false; } - - void onPrepare(GrOpFlushState*) override {} - - void onExecute(GrOpFlushState* state) override { - state->commandBuffer()->discard(); - } - - typedef GrOp INHERITED; -}; - -#endif |