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..1ab5c1ae0a952271513ea04a57f0d137c7541912 100644 |
--- a/third_party/WebKit/Source/platform/graphics/Image.h |
+++ b/third_party/WebKit/Source/platform/graphics/Image.h |
@@ -101,10 +101,22 @@ 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 |kSizeAvailableAndLoadingAsynchronously|: |
+ // Image loading is continuing asynchronously |
+ // (only when |this| is SVGImage and |all_data_received| is true), and |
+ // ImageResourceObserver::AsyncLoadCompleted() is called when finished. |
+ // Otherwise: |
+ // Image loading is completed synchronously. |
+ // ImageResourceObserver::AsyncLoadCompleted() is not called. |
virtual SizeAvailability SetData(PassRefPtr<SharedBuffer> data, |
bool all_data_received); |
- virtual SizeAvailability DataChanged(bool /*allDataReceived*/) { |
+ virtual SizeAvailability DataChanged(bool /*all_data_received*/) { |
return kSizeUnavailable; |
} |