diff options
author | 2017-04-03 10:38:00 -0400 | |
---|---|---|
committer | 2017-04-03 15:13:48 +0000 | |
commit | d3ccb0a37f0e62c84fdcd6a77b7b15476b04db7a (patch) | |
tree | a050c5624e60eee8193f4aa015269ad3bf14e329 /src/gpu/GrDrawOpTest.h | |
parent | dffe9827b18444d1426859d9035f9f0087201f44 (diff) |
Move pipeline handling out of GrMeshDrawOp.
The monolithic GrPipeline is moved to a subclass GrLegacyDrawMeshOp.
The pipeline used to record a GrMesh draw in a GrMeshDrawOp must now be passed rather than implicitly using the op's pipeline.
Change-Id: I50d77e4dcc8d91a523fa7566ce43a9a291174706
Reviewed-on: https://skia-review.googlesource.com/11002
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrDrawOpTest.h')
-rw-r--r-- | src/gpu/GrDrawOpTest.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrDrawOpTest.h b/src/gpu/GrDrawOpTest.h index 43bd21a59e..376022999b 100644 --- a/src/gpu/GrDrawOpTest.h +++ b/src/gpu/GrDrawOpTest.h @@ -14,19 +14,19 @@ #if GR_TEST_UTILS class GrContext; -class GrMeshDrawOp; +class GrLegacyMeshDrawOp; class SkRandom; /** This function returns a randomly configured GrDrawOp for testing purposes. */ -std::unique_ptr<GrMeshDrawOp> GrRandomDrawOp(SkRandom*, GrContext*); +std::unique_ptr<GrLegacyMeshDrawOp> GrRandomDrawOp(SkRandom*, GrContext*); /** GrDrawOp subclasses should define test factory functions using this macro. */ #define DRAW_OP_TEST_DEFINE(Op) \ - std::unique_ptr<GrMeshDrawOp> Op##__Test(SkRandom* random, GrContext* context) + std::unique_ptr<GrLegacyMeshDrawOp> Op##__Test(SkRandom* random, GrContext* context) /** This macro may be used if the test factory function must be made a friend of a class. */ #define DRAW_OP_TEST_FRIEND(Op) \ - friend std::unique_ptr<GrMeshDrawOp> Op##__Test(SkRandom* random, GrContext* context); + friend std::unique_ptr<GrLegacyMeshDrawOp> Op##__Test(SkRandom* random, GrContext* context); #endif #endif |