aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawingManager.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-06-14 16:37:02 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-14 20:45:11 +0000
commit941d1446e0247b3af5d607def3ae87ee66031381 (patch)
tree5f94697ee3d3c5a3ab8a2ca2f021bb344140840c /src/gpu/GrDrawingManager.h
parent1ec03f33cf493352174c748662d4a3cca29f78fd (diff)
Prevent onFlushCB created opLists from being grouped with the normal ones (new)
Change-Id: I8ee04bb40a51f5b432b4c896a0c3e50559977463 Reviewed-on: https://skia-review.googlesource.com/19902 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrDrawingManager.h')
-rw-r--r--src/gpu/GrDrawingManager.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gpu/GrDrawingManager.h b/src/gpu/GrDrawingManager.h
index 15211eff5b..51c698ddfb 100644
--- a/src/gpu/GrDrawingManager.h
+++ b/src/gpu/GrDrawingManager.h
@@ -42,12 +42,15 @@ public:
sk_sp<GrRenderTargetContext> makeRenderTargetContext(sk_sp<GrSurfaceProxy>,
sk_sp<SkColorSpace>,
- const SkSurfaceProps*);
+ const SkSurfaceProps*,
+ bool managedOpList = true);
sk_sp<GrTextureContext> makeTextureContext(sk_sp<GrSurfaceProxy>, sk_sp<SkColorSpace>);
// The caller automatically gets a ref on the returned opList. It must
// be balanced by an unref call.
- sk_sp<GrRenderTargetOpList> newRTOpList(GrRenderTargetProxy* rtp);
+ // A managed opList is controlled by the drawing manager (i.e., sorted & flushed with the
+ // other). An unmanaged one is created and used by the onFlushCallback.
+ sk_sp<GrRenderTargetOpList> newRTOpList(GrRenderTargetProxy* rtp, bool managedOpList);
sk_sp<GrTextureOpList> newTextureOpList(GrTextureProxy* textureProxy);
GrContext* getContext() { return fContext; }