Index: third_party/WebKit/Source/platform/graphics/OffscreenCanvasPlaceholder.h |
diff --git a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasPlaceholder.h b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasPlaceholder.h |
index f03040eca7c2c774a977d73e6ea1ec0f3c9f1657..33b9f625c2e66fa066b062e3e768c49c9c161ce6 100644 |
--- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasPlaceholder.h |
+++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasPlaceholder.h |
@@ -12,15 +12,15 @@ |
namespace blink { |
-class Image; |
class OffscreenCanvasFrameDispatcher; |
+class StaticBitmapImage; |
class WebTaskRunner; |
class PLATFORM_EXPORT OffscreenCanvasPlaceholder { |
public: |
~OffscreenCanvasPlaceholder(); |
- void setPlaceholderFrame(RefPtr<Image>, |
+ void setPlaceholderFrame(RefPtr<StaticBitmapImage>, |
WeakPtr<OffscreenCanvasFrameDispatcher>, |
std::unique_ptr<WebTaskRunner>, |
unsigned resourceId); |
@@ -30,14 +30,16 @@ class PLATFORM_EXPORT OffscreenCanvasPlaceholder { |
void registerPlaceholder(unsigned placeholderId); |
void unregisterPlaceholder(); |
- const RefPtr<Image>& placeholderFrame() const { return m_placeholderFrame; } |
+ const RefPtr<StaticBitmapImage>& placeholderFrame() const { |
+ return m_placeholderFrame; |
+ } |
private: |
bool isPlaceholderRegistered() const { |
return m_placeholderId != kNoPlaceholderId; |
} |
- RefPtr<Image> m_placeholderFrame; |
+ RefPtr<StaticBitmapImage> m_placeholderFrame; |
WeakPtr<OffscreenCanvasFrameDispatcher> m_frameDispatcher; |
std::unique_ptr<WebTaskRunner> m_frameDispatcherTaskRunner; |
unsigned m_placeholderFrameResourceId = 0; |