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..077406cefee5d0ca72e10994b47894d56751bb3b 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 allocateBackingStore(int newWidth, int newHeight, sk_sp<SkColorSpace>); |
Noel Gordon
2017/03/15 13:42:51
Better, and re-reading the comment here for this A
cblume
2017/03/16 02:29:25
I think allocatePixelData() is a much better name.
Noel Gordon
2017/03/16 11:34:04
I'm good with this part of the change: allocatePix
cblume
2017/03/17 05:35:14
Done.
|
bool hasAlpha() const; |
const IntRect& originalFrameRect() const { return m_originalFrameRect; } |