Delete unused GrTextureOpList.
In a follow up CL I will be merging GrRenderTargetOpList and GrOpList
since we no longer have need for that separation.
Change-Id: I267ead3beeceaece504968ca69165c425d38f761
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/236337
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/GrTextureContext.cpp b/src/gpu/GrTextureContext.cpp
index a04d84a..1372a20 100644
--- a/src/gpu/GrTextureContext.cpp
+++ b/src/gpu/GrTextureContext.cpp
@@ -10,7 +10,6 @@
#include "src/gpu/GrAuditTrail.h"
#include "src/gpu/GrContextPriv.h"
#include "src/gpu/GrDrawingManager.h"
-#include "src/gpu/GrTextureOpList.h"
#define ASSERT_SINGLE_OWNER \
SkDEBUGCODE(GrSingleOwner::AutoEnforce debug_SingleOwner(this->singleOwner());)
@@ -22,8 +21,7 @@
SkAlphaType alphaType,
sk_sp<SkColorSpace> colorSpace)
: GrSurfaceContext(context, colorType, alphaType, std::move(colorSpace))
- , fTextureProxy(std::move(textureProxy))
- , fOpList(sk_ref_sp(fTextureProxy->getLastTextureOpList())) {
+ , fTextureProxy(std::move(textureProxy)) {
SkDEBUGCODE(this->validate();)
}
@@ -31,10 +29,6 @@
void GrTextureContext::validate() const {
SkASSERT(fTextureProxy);
fTextureProxy->validate(fContext);
-
- if (fOpList && !fOpList->isClosed()) {
- SkASSERT(fTextureProxy->getLastRenderTask() == fOpList.get());
- }
}
#endif
@@ -53,14 +47,3 @@
SkASSERT(!fTextureProxy->asRenderTargetProxy());
return nullptr;
}
-
-GrOpList* GrTextureContext::getOpList() {
- ASSERT_SINGLE_OWNER
- SkDEBUGCODE(this->validate();)
-
- if (!fOpList || fOpList->isClosed()) {
- fOpList = this->drawingManager()->newTextureOpList(fTextureProxy);
- }
-
- return fOpList.get();
-}