From de3a726ad38b99e5393d5d9e6de3c844893d01b6 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Wed, 3 Feb 2016 17:09:00 -0500 Subject: Make SkImage::readYUV8Planes const TBR=reed@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1660393003 BUG=skia: Review URL: https://codereview.chromium.org/1660393003 . --- src/image/SkImage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/image') diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp index 7507591ee5..e6ea9bd121 100644 --- a/src/image/SkImage.cpp +++ b/src/image/SkImage.cpp @@ -265,7 +265,7 @@ bool SkImage::readPixels(const SkPixmap& pmap, int srcX, int srcY, CachingHint c #include "SkRGBAToYUV.h" bool SkImage::readYUV8Planes(const SkISize sizes[3], void* const planes[3], - const size_t rowBytes[3], SkYUVColorSpace colorSpace) { + const size_t rowBytes[3], SkYUVColorSpace colorSpace) const { #if SK_SUPPORT_GPU if (GrTexture* texture = as_IB(this)->peekTexture()) { if (GrTextureToYUVPlanes(texture, sizes, planes, rowBytes, colorSpace)) { -- cgit v1.2.3