aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2016-02-03 17:09:00 -0500
committerGravatar Brian Salomon <bsalomon@google.com>2016-02-03 17:09:00 -0500
commitde3a726ad38b99e5393d5d9e6de3c844893d01b6 (patch)
tree6abb08cc6b42e8041f3e7af6166582318acca3ed /src/image
parente3fafcf7d1e236a55f9589697a4598e11749405e (diff)
Make SkImage::readYUV8Planes const
Diffstat (limited to 'src/image')
-rw-r--r--src/image/SkImage.cpp2
1 files changed, 1 insertions, 1 deletions
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)) {