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

Unified Diff: Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp

Issue 862693004: Use Budgeted parameter to SkSurface::NewRenderTarget instead of deprecated factory functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.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
« no previous file with comments | « Source/platform/graphics/Canvas2DLayerBridge.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp
diff --git a/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp b/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp
index 0d57b494f65a9c65e149e7e6b075170616fafc19..8bfd4928b13ef140aeccd129183f18de8f6959bd 100644
--- a/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp
+++ b/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp
@@ -55,7 +55,7 @@ AcceleratedImageBufferSurface::AcceleratedImageBufferSurface(const IntSize& size
SkAlphaType alphaType = (Opaque == opacityMode) ? kOpaque_SkAlphaType : kPremul_SkAlphaType;
SkImageInfo info = SkImageInfo::MakeN32(size.width(), size.height(), alphaType);
SkSurfaceProps disableLCDProps(0, kUnknown_SkPixelGeometry);
- m_surface = adoptPtr(SkSurface::NewScratchRenderTarget(grContext, info, msaaSampleCount,
+ m_surface = adoptPtr(SkSurface::NewRenderTarget(grContext, SkSurface::kYes_Budgeted, info, msaaSampleCount,
Opaque == opacityMode ? 0 : &disableLCDProps));
if (!m_surface.get())
return;
« no previous file with comments | « Source/platform/graphics/Canvas2DLayerBridge.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698