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

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

Issue 2508943003: Make OffscreenCanvas resizeable (Closed)
Patch Set: Created 4 years, 1 month 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.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasPlaceholder.cpp b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasPlaceholder.cpp
index e78f4820c4b3e90ef1f0cc06bd4ffecb6c4c3a27..e87e29f23758a7de6bd42c4a1c56b3a8b6677b80 100644
--- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasPlaceholder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasPlaceholder.cpp
@@ -67,11 +67,13 @@ void OffscreenCanvasPlaceholder::setPlaceholderFrame(
std::unique_ptr<WebTaskRunner> taskRunner,
unsigned resourceId) {
DCHECK(isPlaceholderRegistered());
+ DCHECK(newFrame);
releasePlaceholderFrame();
m_placeholderFrame = std::move(newFrame);
m_frameDispatcher = std::move(dispatcher);
m_frameDispatcherTaskRunner = std::move(taskRunner);
m_placeholderFrameResourceId = resourceId;
+ setSize(m_placeholderFrame->size());
}
void OffscreenCanvasPlaceholder::releasePlaceholderFrame() {

Powered by Google App Engine
This is Rietveld 408576698