diff options
author | Mike Klein <mtklein@chromium.org> | 2017-03-01 11:16:17 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-02 13:44:49 +0000 |
commit | afe7a5f84890b88dbb61a3ba53b3d66d679f92d7 (patch) | |
tree | be8d95e9d3a31b0f38b0486f4b8a4c60d1fdff03 /include/core/SkMatrix.h | |
parent | 256c37bc9ea2a0420b8ac1084f6d645aaeb919f0 (diff) |
Add some thread safety notes.
These are the main problems we tend to hit with multithreaded drawing.
Change-Id: I63dc56f38a533eb839d36833e865af5fcc700d3b
Reviewed-on: https://skia-review.googlesource.com/9100
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'include/core/SkMatrix.h')
-rw-r--r-- | include/core/SkMatrix.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h index 5f665ea462..bae37a75b2 100644 --- a/include/core/SkMatrix.h +++ b/include/core/SkMatrix.h @@ -21,6 +21,8 @@ class SkString; SkMatrix does not have a constructor, so it must be explicitly initialized using either reset() - to construct an identity matrix, or one of the set functions (e.g. setTranslate, setRotate, etc.). + + SkMatrix is not thread safe unless you've first called SkMatrix::getType(). */ SK_BEGIN_REQUIRE_DENSE class SK_API SkMatrix { |