| Index: third_party/WebKit/Source/platform/image-decoders/ImageFrame.h
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageFrame.h b/third_party/WebKit/Source/platform/image-decoders/ImageFrame.h
|
| index 5b5eb8aa93cbe7a65d594895364f740b71297ded..71cdf58bc89e9df8228857ad01dd62afb5f9ff69 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/ImageFrame.h
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/ImageFrame.h
|
| @@ -119,10 +119,9 @@ class PLATFORM_EXPORT ImageFrame final {
|
| }
|
|
|
| // Allocates space for the pixel data. Must be called before any pixels
|
| - // are written. Must only be called once. The specified color space may
|
| - // be nullptr if and only if color correct rendering is enabled. Returns
|
| - // whether allocation succeeded.
|
| - bool setSizeAndColorSpace(int newWidth, int newHeight, sk_sp<SkColorSpace>);
|
| + // are written. The specified color space may be nullptr if and only if
|
| + // color correct rendering is enabled. Returns whether allocation succeeded.
|
| + bool allocatePixelData(int newWidth, int newHeight, sk_sp<SkColorSpace>);
|
|
|
| bool hasAlpha() const;
|
| const IntRect& originalFrameRect() const { return m_originalFrameRect; }
|
|
|