aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ops
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-04-24 07:31:02 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-24 12:13:16 +0000
commite3302dfb81865051ad19cd1c91e2ec3a27df3417 (patch)
tree61d6c53ce21f75f6f5f46e24f160760985366e10 /src/gpu/ops
parent96a533051fc71b5ba8ddfaf01498894feed29847 (diff)
Make InstancedRendering more opList-splitting friendly
This CL splits the InstancedRendering class into an allocator and a per-opList op tracker. This was done because we need to allocate the InstancedRendering ops before we know the final destination opList. The InstancedRendering ops are now still all allocated from the same pool but the tracking and execution is done per opList. Change-Id: Ieddabb6f85f8f187c5e7373f7f6cb155d69a9685 Reviewed-on: https://skia-review.googlesource.com/13860 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/ops')
-rw-r--r--src/gpu/ops/GrOp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/ops/GrOp.h b/src/gpu/ops/GrOp.h
index 7f8f8e7f64..953a9147aa 100644
--- a/src/gpu/ops/GrOp.h
+++ b/src/gpu/ops/GrOp.h
@@ -21,6 +21,7 @@
class GrCaps;
class GrGpuCommandBuffer;
class GrOpFlushState;
+class GrRenderTargetOpList;
/**
* GrOp is the base class for all Ganesh deferred GPU operations. To facilitate reordering and to
@@ -132,7 +133,7 @@ public:
* combined into another op or have another op combined into it via combineIfPossible() after
* this call is made.
*/
- virtual void wasRecorded() {}
+ virtual void wasRecorded(GrRenderTargetOpList*) {}
/**
* Called prior to executing. The op should perform any resource creation or data transfers