| Index: third_party/WebKit/Source/platform/graphics/Image.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/Image.h b/third_party/WebKit/Source/platform/graphics/Image.h
|
| index 869a047723665282e36ae97a980cdff80f53a49a..e2c390b8a8482e0e427aa33c79ebdcb60a3b4897 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/Image.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/Image.h
|
| @@ -101,7 +101,19 @@ class PLATFORM_EXPORT Image : public ThreadSafeRefCounted<Image> {
|
| int height() const { return Size().Height(); }
|
| virtual bool GetHotSpot(IntPoint&) const { return false; }
|
|
|
| - enum SizeAvailability { kSizeAvailable, kSizeUnavailable };
|
| + enum SizeAvailability {
|
| + kSizeAvailable,
|
| + kSizeUnavailable,
|
| + kSizeAvailableAndLoadingAsynchronously
|
| + };
|
| +
|
| + // If setData() returns |SizeAvailableAndLoadingAsynchronously|:
|
| + // Image loading is continuing asynchronously
|
| + // (only when |this| is SVGImage and |allDataReceived| is true), and
|
| + // ImageResourceObserver::loadCompleted() is called when finished.
|
| + // Otherwise:
|
| + // Image loading is completed synchronously.
|
| + // ImageResourceObserver::loadCompleted() is not called.
|
| virtual SizeAvailability SetData(PassRefPtr<SharedBuffer> data,
|
| bool all_data_received);
|
| virtual SizeAvailability DataChanged(bool /*allDataReceived*/) {
|
|
|