aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-07-19 13:50:54 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-19 18:16:05 +0000
commite5b399ee69332e0d68a660d6695d1182a4cb16b1 (patch)
tree25fefab7cc05a848a7f88b0cb51bd568ad02d67f /tools
parent6d66237a034fb2b3051ea9247a7ba728907abb4a (diff)
Remove GrLegacyMeshDrawOp and GrPipelineBuilder
Change-Id: Ib301a0e7d4b4c4f05417d28862017307949748c9 Reviewed-on: https://skia-review.googlesource.com/23584 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/gpu/GrTest.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp
index 201476855d..e8672411cb 100644
--- a/tools/gpu/GrTest.cpp
+++ b/tools/gpu/GrTest.cpp
@@ -14,7 +14,6 @@
#include "GrDrawingManager.h"
#include "GrGpu.h"
#include "GrGpuResourceCacheAccess.h"
-#include "GrPipelineBuilder.h"
#include "GrRenderTargetContext.h"
#include "GrRenderTargetContextPriv.h"
#include "GrRenderTargetProxy.h"
@@ -246,30 +245,6 @@ int GrResourceCache::countUniqueKeysWithTag(const char* tag) const {
#define ASSERT_SINGLE_OWNER \
SkDEBUGCODE(GrSingleOwner::AutoEnforce debug_SingleOwner(fRenderTargetContext->singleOwner());)
-uint32_t GrRenderTargetContextPriv::testingOnly_addLegacyMeshDrawOp(
- GrPaint&& paint,
- GrAAType aaType,
- std::unique_ptr<GrLegacyMeshDrawOp> op,
- const GrUserStencilSettings* uss,
- bool snapToCenters) {
- ASSERT_SINGLE_OWNER
- if (fRenderTargetContext->drawingManager()->wasAbandoned()) {
- return SK_InvalidUniqueID;
- }
- SkDEBUGCODE(fRenderTargetContext->validate());
- GR_AUDIT_TRAIL_AUTO_FRAME(fRenderTargetContext->fAuditTrail,
- "GrRenderTargetContext::testingOnly_addLegacyMeshDrawOp");
-
- GrPipelineBuilder pipelineBuilder(std::move(paint), aaType);
- if (uss) {
- pipelineBuilder.setUserStencil(uss);
- }
- pipelineBuilder.setSnapVerticesToPixelCenters(snapToCenters);
-
- return fRenderTargetContext->addLegacyMeshDrawOp(std::move(pipelineBuilder), GrNoClip(),
- std::move(op));
-}
-
uint32_t GrRenderTargetContextPriv::testingOnly_addDrawOp(std::unique_ptr<GrDrawOp> op) {
ASSERT_SINGLE_OWNER
if (fRenderTargetContext->drawingManager()->wasAbandoned()) {