diff options
author | Brian Salomon <bsalomon@google.com> | 2017-07-25 09:43:22 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-25 14:00:53 +0000 |
commit | 0e05a823f6ff6e9d799172f002e77ab9f2015f0f (patch) | |
tree | 4fac7a1b648be3b11aaf3a65122d26bce1df03c4 /src/gpu/GrTextureStripAtlas.h | |
parent | 22115b4fc6ab169d45a1cfb65dae2dc7e544c80a (diff) |
Add GrFragmentProcessor::clone(), implementation for ColorTableEffect, and unit test.
We occasionally make copies of GrPaints. clone() fill facilitate this case when GrFragmentProcessors are non-shareable..
Change-Id: I004e34f6ce8c293f9e0664d26532e44bd6b9fdff
Reviewed-on: https://skia-review.googlesource.com/26360
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrTextureStripAtlas.h')
-rw-r--r-- | src/gpu/GrTextureStripAtlas.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/GrTextureStripAtlas.h b/src/gpu/GrTextureStripAtlas.h index 5658b161ed..8957aa305a 100644 --- a/src/gpu/GrTextureStripAtlas.h +++ b/src/gpu/GrTextureStripAtlas.h @@ -52,6 +52,11 @@ public: * is responsible for calling unlockRow() with this row index when it's done with it. */ int lockRow(const SkBitmap& data); + /** + * This is intended to be used when cloning a processor that already holds a lock. It is + * assumed that the row already has at least one lock. + */ + void lockRow(int row); void unlockRow(int row); /** |