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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 --- platform/graphics/GraphicsContext.cpp
2 +++ platform/graphics/GraphicsContext.cpp
3 @@ -419,19 +419,6 @@
4 paint->setLCDRenderText(couldUseLCDRenderedText());
5 }
6
7 -bool GraphicsContext::couldUseLCDRenderedText() const
8 -{
9 - ASSERT(m_canvas);
10 - // Our layers only have a single alpha channel. This means that subpixel
11 - // rendered text cannot be composited correctly when the layer is
12 - // collapsed. Therefore, subpixel text is contextDisabled when we are drawi ng
13 - // onto a layer.
14 - if (contextDisabled() || m_canvas->isDrawingToLayer() || !isCertainlyOpaque ())
15 - return false;
16 -
17 - return shouldSmoothFonts();
18 -}
19 -
20 void GraphicsContext::setCompositeOperation(CompositeOperator compositeOperatio n, WebBlendMode blendMode)
21 {
22 if (contextDisabled())
OLDNEW
« 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