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

Unified Diff: sky/engine/core/html/HTMLCanvasElement.cpp

Issue 842113005: Delete a bunch of noop paint invalidation code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix comment Created 5 years, 11 months 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
« no previous file with comments | « sky/engine/core/html/HTMLCanvasElement.h ('k') | sky/engine/core/loader/EmptyClients.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/HTMLCanvasElement.cpp
diff --git a/sky/engine/core/html/HTMLCanvasElement.cpp b/sky/engine/core/html/HTMLCanvasElement.cpp
index 048e2e3b553f92981c6516b23ed43082a8752b2a..10c656bd0eeebd505bb0fbb5933ddddcf57259fb 100644
--- a/sky/engine/core/html/HTMLCanvasElement.cpp
+++ b/sky/engine/core/html/HTMLCanvasElement.cpp
@@ -216,14 +216,12 @@ void HTMLCanvasElement::resetDirtyRect()
void HTMLCanvasElement::finalizeFrameMicrotask()
{
// This method gets invoked if didDraw was called earlier in the current task.
- ASSERT(!m_dirtyRect.isEmpty());
if (is3D()) {
didFinalizeFrame();
} else {
ASSERT(hasImageBuffer());
- m_imageBuffer->finalizeFrame(m_dirtyRect);
+ m_imageBuffer->finalizeFrame();
}
- ASSERT(m_dirtyRect.isEmpty());
ASSERT(m_finalizeFrameTask.IsCancelled());
}
« no previous file with comments | « sky/engine/core/html/HTMLCanvasElement.h ('k') | sky/engine/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698