Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: third_party/WebKit/Source/platform/graphics/OffscreenCanvasPlaceholder.h

Issue 2566313002: Make OffscreenCanvas commit() propagate the origin-clean flag. (Closed)
Patch Set: add test Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698