aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private/GrOpList.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-02-07 17:08:21 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-08 12:36:29 +0000
commit4150eea6c49ecec882a8d3e1c61d6a25fcd1e905 (patch)
tree21b7089d6745f769be88f8f3d9a127d521ff48be /include/private/GrOpList.h
parent1f1bb9c0b8d5f50ac74716e6961a6c92f1d373d8 (diff)
Move control of explicit GPU resource allocation to GrContextOptions
Change-Id: Ic284acc79bab5936f0007d5ae5fb1e7a9929e2af Reviewed-on: https://skia-review.googlesource.com/104880 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'include/private/GrOpList.h')
-rw-r--r--include/private/GrOpList.h41
1 files changed, 15 insertions, 26 deletions
diff --git a/include/private/GrOpList.h b/include/private/GrOpList.h
index c9abd6d4e5..f183081bde 100644
--- a/include/private/GrOpList.h
+++ b/include/private/GrOpList.h
@@ -14,17 +14,6 @@
#include "SkRefCnt.h"
#include "SkTDArray.h"
-
-// Turn on/off the explicit distribution of GPU resources at flush time
-#ifndef SK_DISABLE_EXPLICIT_GPU_RESOURCE_ALLOCATION
- #define SK_DISABLE_EXPLICIT_GPU_RESOURCE_ALLOCATION
-#endif
-
-// Turn on/off the sorting of opLists at flush time
-#ifndef SK_DISABLE_RENDER_TARGET_SORTING
- #define SK_DISABLE_RENDER_TARGET_SORTING
-#endif
-
class GrAuditTrail;
class GrCaps;
class GrOpFlushState;
@@ -111,7 +100,7 @@ public:
void setStencilLoadOp(GrLoadOp loadOp) { fStencilLoadOp = loadOp; }
protected:
- SkDEBUGCODE(bool isInstantiated() const;)
+ bool isInstantiated() const;
GrSurfaceProxyRef fTarget;
GrAuditTrail* fAuditTrail;
@@ -154,26 +143,26 @@ private:
}
struct TopoSortTraits {
- static void Output(GrOpList* dt, int /* index */) {
- dt->setFlag(GrOpList::kWasOutput_Flag);
+ static void Output(GrOpList* opList, int /* index */) {
+ opList->setFlag(GrOpList::kWasOutput_Flag);
}
- static bool WasOutput(const GrOpList* dt) {
- return dt->isSetFlag(GrOpList::kWasOutput_Flag);
+ static bool WasOutput(const GrOpList* opList) {
+ return opList->isSetFlag(GrOpList::kWasOutput_Flag);
}
- static void SetTempMark(GrOpList* dt) {
- dt->setFlag(GrOpList::kTempMark_Flag);
+ static void SetTempMark(GrOpList* opList) {
+ opList->setFlag(GrOpList::kTempMark_Flag);
}
- static void ResetTempMark(GrOpList* dt) {
- dt->resetFlag(GrOpList::kTempMark_Flag);
+ static void ResetTempMark(GrOpList* opList) {
+ opList->resetFlag(GrOpList::kTempMark_Flag);
}
- static bool IsTempMarked(const GrOpList* dt) {
- return dt->isSetFlag(GrOpList::kTempMark_Flag);
+ static bool IsTempMarked(const GrOpList* opList) {
+ return opList->isSetFlag(GrOpList::kTempMark_Flag);
}
- static int NumDependencies(const GrOpList* dt) {
- return dt->fDependencies.count();
+ static int NumDependencies(const GrOpList* opList) {
+ return opList->fDependencies.count();
}
- static GrOpList* Dependency(GrOpList* dt, int index) {
- return dt->fDependencies[index];
+ static GrOpList* Dependency(GrOpList* opList, int index) {
+ return opList->fDependencies[index];
}
};