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 .
This commit is contained in:
parent
e3fafcf7d1
commit
de3a726ad3
@ -159,7 +159,7 @@ public:
|
||||
* planes and rowBytes arrays are ordered [y, u, v].
|
||||
*/
|
||||
bool readYUV8Planes(const SkISize[3], void* const planes[3], const size_t rowBytes[3],
|
||||
SkYUVColorSpace);
|
||||
SkYUVColorSpace) const;
|
||||
|
||||
virtual SkShader* newShader(SkShader::TileMode,
|
||||
SkShader::TileMode,
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user