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

Unified Diff: sky/engine/platform/graphics/Canvas2DLayerBridge.cpp

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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: sky/engine/platform/graphics/Canvas2DLayerBridge.cpp
diff --git a/sky/engine/platform/graphics/Canvas2DLayerBridge.cpp b/sky/engine/platform/graphics/Canvas2DLayerBridge.cpp
index 6bab12a595b9749b426c818ac79fe9b7f8505ca5..f337d98bc735c28f0a1b73bd8cf27a6e3f7bf0c7 100644
--- a/sky/engine/platform/graphics/Canvas2DLayerBridge.cpp
+++ b/sky/engine/platform/graphics/Canvas2DLayerBridge.cpp
@@ -55,7 +55,8 @@ static PassRefPtr<SkSurface> createSkSurface(GrContext* gr, const IntSize& size,
return nullptr;
gr->resetContext();
SkImageInfo info = SkImageInfo::MakeN32Premul(size.width(), size.height());
- return adoptRef(SkSurface::NewRenderTarget(gr, info, msaaSampleCount));
+ SkSurfaceProps disableLCDProps(0, kUnknown_SkPixelGeometry);
+ return adoptRef(SkSurface::NewRenderTarget(gr, info, msaaSampleCount, &disableLCDProps));
}
PassRefPtr<Canvas2DLayerBridge> Canvas2DLayerBridge::create(const IntSize& size, OpacityMode opacityMode, int msaaSampleCount)
« shell/BUILD.gn ('K') | « sky/engine/platform/BUILD.gn ('k') | sky/engine/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698