diff options
author | Greg Daniel <egdaniel@google.com> | 2018-02-02 15:48:33 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-02 21:16:19 +0000 |
commit | fb3abcd8c335132b6ad8434a171516102bbf4495 (patch) | |
tree | a61244af55debc848e27716742f209dc29d63bc1 /src/gpu/GrYUVProvider.h | |
parent | 1d8726fbed346dd2b96d4ef3106262e3d3dee5f4 (diff) |
Update GrYUVGenerator to upload to texture vs use writePixels
Bug: skia:
Change-Id: I891ba25d2018008a32ef01608da9209cf2642b2e
Reviewed-on: https://skia-review.googlesource.com/102902
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrYUVProvider.h')
-rw-r--r-- | src/gpu/GrYUVProvider.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrYUVProvider.h b/src/gpu/GrYUVProvider.h index 5f9cccea18..17f06deadb 100644 --- a/src/gpu/GrYUVProvider.h +++ b/src/gpu/GrYUVProvider.h @@ -66,6 +66,12 @@ public: * @param planes Memory for each of the Y, U, and V planes. */ virtual bool onGetYUV8Planes(const SkYUVSizeInfo& sizeInfo, void* planes[3]) = 0; + +private: + // This is used as release callback for the YUV data that we capture in an SkImage when + // uploading to a gpu. When the upload is complete and we release the SkImage this callback will + // release the underlying data. + static void YUVGen_DataReleaseProc(const void*, void* data); }; #endif |