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

Unified Diff: sky/engine/core/html/canvas/WebGLRenderingContextBase.cpp

Issue 865153004: Remove dead code related to compositing from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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.cpp ('k') | sky/engine/core/page/Page.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/canvas/WebGLRenderingContextBase.cpp
diff --git a/sky/engine/core/html/canvas/WebGLRenderingContextBase.cpp b/sky/engine/core/html/canvas/WebGLRenderingContextBase.cpp
index 4fff6493c3419b986272570143aa43e1c2dfc451..1f935fbd1e45d2e858169b8ad1c0ceb84708e65f 100644
--- a/sky/engine/core/html/canvas/WebGLRenderingContextBase.cpp
+++ b/sky/engine/core/html/canvas/WebGLRenderingContextBase.cpp
@@ -780,15 +780,9 @@ void WebGLRenderingContextBase::markContextChanged(ContentChangeType changeType)
drawingBuffer()->markContentsChanged();
m_layerCleared = false;
- RenderBox* renderBox = canvas()->renderBox();
- if (renderBox && renderBox->hasAcceleratedCompositing()) {
+ if (!m_markedCanvasDirty) {
m_markedCanvasDirty = true;
- canvas()->clearCopiedImage();
- } else {
- if (!m_markedCanvasDirty) {
- m_markedCanvasDirty = true;
- canvas()->didDraw(FloatRect(FloatPoint(0, 0), clampedCanvasSize()));
- }
+ canvas()->didDraw(FloatRect(FloatPoint(0, 0), clampedCanvasSize()));
}
}
« no previous file with comments | « sky/engine/core/html/HTMLCanvasElement.cpp ('k') | sky/engine/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698