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 f0199925a7f19ea4d0160712ac02ecf8613154a4..e80826ce61f21c2e415950faf10c4881974063a7 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 { SizeAvailable, SizeUnavailable }; |
+ enum SizeAvailability { |
+ SizeAvailable, |
+ SizeUnavailable, |
+ SizeAvailableAndLoadingAsynchronously |
+ }; |
+ |
+ // 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 allDataReceived); |
virtual SizeAvailability dataChanged(bool /*allDataReceived*/) { |