diff options
author | 2018-03-20 16:23:08 -0400 | |
---|---|---|
committer | 2018-03-20 21:08:57 +0000 | |
commit | 5c4b33bce10be894fd4a99e99663efb867b5e000 (patch) | |
tree | 2314b35a934999fccbd4b949689cb67ea6eae371 /src/gpu/GrProxyProvider.h | |
parent | 7e86547842e6c5d04d3e0e9b1a644679fd0f9099 (diff) |
Don't add change listeners to pixelRefs in DDL mode
Change-Id: I1ddfec1e0d697dd4ed183c304514b14c89aca11d
Reviewed-on: https://skia-review.googlesource.com/115400
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrProxyProvider.h')
-rw-r--r-- | src/gpu/GrProxyProvider.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gpu/GrProxyProvider.h b/src/gpu/GrProxyProvider.h index 2f452b4e62..76f0ae963b 100644 --- a/src/gpu/GrProxyProvider.h +++ b/src/gpu/GrProxyProvider.h @@ -236,10 +236,9 @@ public: void removeAllUniqueKeys(); /** - * Helper function for callers who are wrapping a bitmap into an SkImage so they know whether or - * not that bitmap should be copied or not. + * Are we currently recording a DDL? */ - bool mutableBitmapsNeedCopy() const { return !SkToBool(fResourceProvider); } + bool recordingDDL() const { return !SkToBool(fResourceProvider); } private: friend class GrAHardwareBufferImageGenerator; // for createWrapped |