aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkClipStack.h
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-03-09 23:56:25 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-10 14:12:49 +0000
commitd37f22b1e81be69d05e9422c305a0595952695d7 (patch)
tree813fb0e41dbf1f6d2e10979cb51280d85e085c27 /src/core/SkClipStack.h
parent5af600e42c5660d01e209d5634c15352202368b8 (diff)
Clients can provide preallocated storage to clipstack
This allows devices (gpu, pdf) which are themselves always dynamically allocated (since they are reference counted) to provide storage to clipstack, allowing it to avoid calls to malloc. Previously this was attempted by embedding the storage directly in clipstack, but that increased the size of clipstack in all instances, even those where it might be on the stack. This can be problematic for small-stack environments like servers. See previous (reverted) CL: https://skia-review.googlesource.com/c/9522/ BUG=skia: Change-Id: Ifc7f5ef411303f33513195b1502ea9f281e995c5 Reviewed-on: https://skia-review.googlesource.com/9508 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkClipStack.h')
-rw-r--r--src/core/SkClipStack.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/SkClipStack.h b/src/core/SkClipStack.h
index 080712dfe3..215e287645 100644
--- a/src/core/SkClipStack.h
+++ b/src/core/SkClipStack.h
@@ -327,6 +327,7 @@ public:
};
SkClipStack();
+ SkClipStack(void* storage, size_t size);
SkClipStack(const SkClipStack& b);
~SkClipStack();