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

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

Issue 735033003: Remove a bunch of dead code from RenderLayer (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cr comments Created 6 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
« no previous file with comments | « sky/engine/core/dom/Element.cpp ('k') | sky/engine/core/html/canvas/WebGLRenderingContextBase.cpp » ('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 0a769b0d1c5854a849529a60a988744597727e4b..55dca613ea23aa295f5a3ee731b924e20bea6572 100644
--- a/sky/engine/core/html/HTMLCanvasElement.cpp
+++ b/sky/engine/core/html/HTMLCanvasElement.cpp
@@ -157,7 +157,6 @@ CanvasRenderingContext* HTMLCanvasElement::getContext(const String& type, Canvas
if (!m_context) {
blink::Platform::current()->histogramEnumeration("Canvas.ContextType", Context2d, ContextTypeCount);
m_context = CanvasRenderingContext2D::create(this, static_cast<Canvas2DContextAttributes*>(attrs));
- setNeedsCompositingUpdate();
}
return m_context.get();
}
@@ -168,7 +167,6 @@ CanvasRenderingContext* HTMLCanvasElement::getContext(const String& type, Canvas
if (!m_context) {
blink::Platform::current()->histogramEnumeration("Canvas.ContextType", contextType, ContextTypeCount);
m_context = WebGLRenderingContext::create(this, static_cast<WebGLContextAttributes*>(attrs));
- setNeedsCompositingUpdate();
updateExternallyAllocatedMemory();
} else if (!m_context->is3d()) {
dispatchEvent(WebGLContextEvent::create(EventTypeNames::webglcontextcreationerror, false, true, "Canvas has an existing, non-WebGL context"));
@@ -285,11 +283,6 @@ void HTMLCanvasElement::reset()
if (RenderObject* renderer = this->renderer()) {
if (renderer->isCanvas()) {
- if (oldSize != size()) {
- toRenderHTMLCanvas(renderer)->canvasSizeChanged();
- if (renderBox() && renderBox()->hasAcceleratedCompositing())
- renderBox()->contentChanged(CanvasChanged);
- }
if (hadImageBuffer)
renderer->setShouldDoFullPaintInvalidation(true);
}
@@ -525,9 +518,6 @@ void HTMLCanvasElement::createImageBufferInternal()
m_imageBuffer->context()->disableDestructionChecks(); // 2D canvas is allowed to leave context in an unfinalized state.
#endif
m_contextStateSaver = adoptPtr(new GraphicsContextStateSaver(*m_imageBuffer->context()));
-
- if (m_context)
- setNeedsCompositingUpdate();
}
void HTMLCanvasElement::notifySurfaceInvalid()
« no previous file with comments | « sky/engine/core/dom/Element.cpp ('k') | sky/engine/core/html/canvas/WebGLRenderingContextBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698