diff options
author | Robert Phillips <robertphillips@google.com> | 2018-03-08 09:51:04 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-08 15:26:51 +0000 |
commit | c7c2baf0cf264b9d0d9c0f67cfb827a7e4a5e32c (patch) | |
tree | 6af65cc34a6b4557fd24d029c447c2822bdb9699 /src/gpu/GrGpu.cpp | |
parent | 8c827ce7ea5b624792a9261f65d9515deb56a63d (diff) |
Additional DDL playback cleanup
This operates in tandem with https://skia-review.googlesource.com/c/skia/+/112702 (
Remove GrRestrictedAtlasManager) to get DDL playback working.
Change-Id: I6c2178fde760677bf79f2cf0a2dee8b5990aa5bc
Reviewed-on: https://skia-review.googlesource.com/113121
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrGpu.cpp')
-rw-r--r-- | src/gpu/GrGpu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp index 9a9c2d509a..fe42a9391e 100644 --- a/src/gpu/GrGpu.cpp +++ b/src/gpu/GrGpu.cpp @@ -44,12 +44,12 @@ void GrGpu::disconnect(DisconnectType) {} //////////////////////////////////////////////////////////////////////////////// -bool GrGpu::isACopyNeededForTextureParams(int width, int height, +bool GrGpu::IsACopyNeededForTextureParams(const GrCaps* caps, + int width, int height, const GrSamplerState& textureParams, GrTextureProducer::CopyParams* copyParams, - SkScalar scaleAdjust[2]) const { - const GrCaps& caps = *this->caps(); - if (textureParams.isRepeated() && !caps.npotTextureTileSupport() && + SkScalar scaleAdjust[2]) { + if (textureParams.isRepeated() && !caps->npotTextureTileSupport() && (!SkIsPow2(width) || !SkIsPow2(height))) { SkASSERT(scaleAdjust); copyParams->fWidth = GrNextPow2(width); |