Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: include/private/GrInstancedPipelineInfo.h

Issue 2123693002: Revert of Begin instanced rendering for simple shapes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/gpu/GrDrawContext.h ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/private/GrInstancedPipelineInfo.h
diff --git a/include/private/GrInstancedPipelineInfo.h b/include/private/GrInstancedPipelineInfo.h
deleted file mode 100644
index f12b89fc6b80665b2a8552bbf3e19cb4834eae19..0000000000000000000000000000000000000000
--- a/include/private/GrInstancedPipelineInfo.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * 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 GrGrInstancedPipelineInfo_DEFINED
-#define GrGrInstancedPipelineInfo_DEFINED
-
-#include "GrRenderTarget.h"
-
-/**
- * Provides info about the pipeline that GrInstancedRendering needs in order to select appropriate
- * drawing algorithms.
- */
-struct GrInstancedPipelineInfo {
- GrInstancedPipelineInfo(const GrRenderTarget* rt)
- : fIsMultisampled(rt->isStencilBufferMultisampled()),
- fIsMixedSampled(rt->hasMixedSamples()),
- fIsRenderingToFloat(GrPixelConfigIsFloatingPoint(rt->desc().fConfig)),
- fColorDisabled(false),
- fDrawingShapeToStencil(false),
- fCanDiscard(false) {
- }
-
- bool canUseCoverageAA() const {
- return !fIsMultisampled || (fIsMixedSampled && !fDrawingShapeToStencil);
- }
-
- bool fIsMultisampled : 1;
- bool fIsMixedSampled : 1;
- bool fIsRenderingToFloat : 1;
- bool fColorDisabled : 1;
- /**
- * Indicates that the instanced renderer should take extra precautions to ensure the shape gets
- * drawn correctly to the stencil buffer (e.g. no coverage AA). NOTE: this does not mean a
- * stencil test is or is not active.
- */
- bool fDrawingShapeToStencil : 1;
- /**
- * Indicates that the instanced renderer can use processors with discard instructions. This
- * should not be set if the shader will use derivatives, automatic mipmap LOD, or other features
- * that depend on neighboring pixels. Some draws will fail to create if this is not set.
- */
- bool fCanDiscard : 1;
-};
-
-#endif
« no previous file with comments | « include/gpu/GrDrawContext.h ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698