diff options
author | Brian Salomon <bsalomon@google.com> | 2017-03-09 13:50:43 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-09 19:26:13 +0000 |
commit | 649a3411f99a8aea3c46e4ef1f495f61b9801164 (patch) | |
tree | 1de3926cfb95e9fa7b440b26dfa6988fd351eccf /src/gpu/GrDrawOpTest.cpp | |
parent | 383dd9dc58a142392907a3a975d5f3317cda5288 (diff) |
Add a separate draw function to GrRenderTargetContext for GrMeshDrawOp derived classes.
The first phase of deferring GrPipeline creation until flush will apply only to GrDrawOp subclasses that do not derive from GrMeshDrawOp. This change prepares for that by creating separate draw functions on GrRenderTargetContext for GrMeshDrawOp-derived ops. This is temporary and will incrementally be undone as pipeline-creation deferral rolls out to the GrMeshDrawOps in a later phase of this work.
Change-Id: I0f5b71fe913f3273cfe9e965f7d8bbe7f01ad0ef
Reviewed-on: https://skia-review.googlesource.com/9481
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrDrawOpTest.cpp')
-rw-r--r-- | src/gpu/GrDrawOpTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrDrawOpTest.cpp b/src/gpu/GrDrawOpTest.cpp index fcf70e0d7b..c2bf2c6c0e 100644 --- a/src/gpu/GrDrawOpTest.cpp +++ b/src/gpu/GrDrawOpTest.cpp @@ -6,14 +6,14 @@ */ #include "GrDrawOpTest.h" -#include "ops/GrDrawOp.h" #include "SkRandom.h" #include "SkTypes.h" +#include "ops/GrMeshDrawOp.h" #if GR_TEST_UTILS #define DRAW_OP_TEST_EXTERN(Op) \ - extern std::unique_ptr<GrDrawOp> Op##__Test(SkRandom*, GrContext* context); + extern std::unique_ptr<GrMeshDrawOp> Op##__Test(SkRandom*, GrContext* context); #define DRAW_OP_TEST_ENTRY(Op) Op##__Test @@ -37,8 +37,8 @@ DRAW_OP_TEST_EXTERN(TesselatingPathOp); DRAW_OP_TEST_EXTERN(TextBlobOp); DRAW_OP_TEST_EXTERN(VerticesOp); -std::unique_ptr<GrDrawOp> GrRandomDrawOp(SkRandom* random, GrContext* context) { - using MakeTestDrawOpFn = std::unique_ptr<GrDrawOp>(SkRandom* random, GrContext* context); +std::unique_ptr<GrMeshDrawOp> GrRandomDrawOp(SkRandom* random, GrContext* context) { + using MakeTestDrawOpFn = std::unique_ptr<GrMeshDrawOp>(SkRandom* random, GrContext* context); static constexpr MakeTestDrawOpFn* gFactories[] = { DRAW_OP_TEST_ENTRY(AAConvexPathOp), DRAW_OP_TEST_ENTRY(AADistanceFieldPathOp), |