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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp

Issue 2877833002: Disable 2D canvas deferral on text rendering when compositing (Closed)
Patch Set: x Created 3 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: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
index cc2d4d176bc68d61abcd1eb52c59f140312b3045..0f4f5478db3d30dd078d04a8ca5479390e2721d8 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
@@ -853,7 +853,7 @@ void CanvasRenderingContext2D::DrawTextInternal(
// anti-aliasing, which is expected when !creationAttributes().alpha(), so we
// need to fall out of display list mode when drawing text to an opaque
// canvas. crbug.com/583809
- if (!CreationAttributes().alpha() && !IsComposited()) {
+ if (!IsComposited()) {
canvas()->DisableDeferral(
kDisableDeferralReasonSubPixelTextAntiAliasingSupport);
}

Powered by Google App Engine
This is Rietveld 408576698