diff options
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r-- | src/gpu/GrGpu.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h index 1e283457fc..df8cb080a4 100644 --- a/src/gpu/GrGpu.h +++ b/src/gpu/GrGpu.h @@ -481,14 +481,14 @@ public: // original texture but rather was handed the original texture. It adds additional checks // relevant to original textures that were created external to Skia via // GrResourceProvider::wrap methods. - bool isACopyNeededForTextureParams(GrTexture* texture, const GrSamplerParams& params, + bool isACopyNeededForTextureParams(GrTextureProxy* proxy, const GrSamplerParams& params, GrTextureProducer::CopyParams* copyParams, SkScalar scaleAdjust[2]) const { - if (this->isACopyNeededForTextureParams(texture->width(), texture->height(), params, + if (this->isACopyNeededForTextureParams(proxy->width(), proxy->height(), params, copyParams, scaleAdjust)) { return true; } - return this->onIsACopyNeededForTextureParams(texture, params, copyParams, scaleAdjust); + return this->onIsACopyNeededForTextureParams(proxy, params, copyParams, scaleAdjust); } // This is only to be used in GL-specific tests. @@ -550,7 +550,7 @@ private: virtual gr_instanced::InstancedRendering* onCreateInstancedRendering() = 0; - virtual bool onIsACopyNeededForTextureParams(GrTexture* texture, const GrSamplerParams&, + virtual bool onIsACopyNeededForTextureParams(GrTextureProxy* proxy, const GrSamplerParams&, GrTextureProducer::CopyParams*, SkScalar scaleAdjust[2]) const { return false; |