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

Unified Diff: sky/engine/platform/graphics/GraphicsContext.cpp.rej

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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: sky/engine/platform/graphics/GraphicsContext.cpp.rej
diff --git a/sky/engine/platform/graphics/GraphicsContext.cpp.rej b/sky/engine/platform/graphics/GraphicsContext.cpp.rej
new file mode 100644
index 0000000000000000000000000000000000000000..8abf473393eb810b10465b2c9bb5fb99930103ba
--- /dev/null
+++ b/sky/engine/platform/graphics/GraphicsContext.cpp.rej
@@ -0,0 +1,22 @@
+--- platform/graphics/GraphicsContext.cpp
++++ platform/graphics/GraphicsContext.cpp
+@@ -419,19 +419,6 @@
+ paint->setLCDRenderText(couldUseLCDRenderedText());
+ }
+
+-bool GraphicsContext::couldUseLCDRenderedText() const
+-{
+- ASSERT(m_canvas);
+- // Our layers only have a single alpha channel. This means that subpixel
+- // rendered text cannot be composited correctly when the layer is
+- // collapsed. Therefore, subpixel text is contextDisabled when we are drawing
+- // onto a layer.
+- if (contextDisabled() || m_canvas->isDrawingToLayer() || !isCertainlyOpaque())
+- return false;
+-
+- return shouldSmoothFonts();
+-}
+-
+ void GraphicsContext::setCompositeOperation(CompositeOperator compositeOperation, WebBlendMode blendMode)
+ {
+ if (contextDisabled())
« no previous file with comments | « sky/engine/platform/graphics/GraphicsContext.cpp.orig ('k') | sky/engine/platform/graphics/GraphicsContext.h.orig » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698