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

Unified Diff: Source/core/html/HTMLCanvasElement.cpp

Issue 1093673002: Removing the dependency on GraphicsContext for drawing images in 2D canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: pdr corrections + needsrebaselines Created 5 years, 7 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
Index: Source/core/html/HTMLCanvasElement.cpp
diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp
index 49710329fd8e816f698731528da41ff417d1bbb4..840378ef5edfd32b021a75dba70405aa8a0f58cd 100644
--- a/Source/core/html/HTMLCanvasElement.cpp
+++ b/Source/core/html/HTMLCanvasElement.cpp
@@ -289,7 +289,7 @@ void HTMLCanvasElement::didDraw(const FloatRect& rect)
m_dirtyRect.unite(rect);
if (m_context && m_context->is2d() && hasImageBuffer())
buffer()->didDraw(rect);
- notifyObserversCanvasChanged(m_dirtyRect);
+ notifyObserversCanvasChanged(rect);
Stephen White 2015/05/27 15:46:02 Out of curiosity, is this a bugfix / optimization?
Justin Novosad 2015/05/27 20:08:16 Drive-by optimization. We use to do these notifica
}
void HTMLCanvasElement::didFinalizeFrame()
@@ -682,8 +682,6 @@ void HTMLCanvasElement::createImageBufferInternal(PassOwnPtr<ImageBufferSurface>
}
m_imageBuffer->setClient(this);
- m_imageBuffer->context()->setShouldClampToSourceRect(false);
- m_imageBuffer->context()->disableAntialiasingOptimizationForHairlineImages();
m_imageBuffer->context()->setImageInterpolationQuality(CanvasDefaultInterpolationQuality);
Stephen White 2015/05/27 15:46:02 Is this still used / necessary? If we're no longer
Justin Novosad 2015/05/27 20:08:16 Acknowledged.
// Enabling MSAA overrides a request to disable antialiasing. This is true regardless of whether the
// rendering mode is accelerated or not. For consistency, we don't want to apply AA in accelerated

Powered by Google App Engine
This is Rietveld 408576698