From afe3005be3392e43bc51eb7eb2017eefaed85ad1 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Fri, 16 Jan 2015 07:32:33 -0800 Subject: Require budget decision when creating a RenderTarget SkSurface. Restructure SkGpuDevice creation: *SkSurfaceProps are optional. *Use SkSurfaceProps to communicate DF text rather than a flag. *Tell SkGpuDevice::Create whether RT comes from cache or not. Review URL: https://codereview.chromium.org/848903004 --- tests/PremulAlphaRoundTripTest.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tests/PremulAlphaRoundTripTest.cpp') diff --git a/tests/PremulAlphaRoundTripTest.cpp b/tests/PremulAlphaRoundTripTest.cpp index ce45f16258..9f5d6ff338 100644 --- a/tests/PremulAlphaRoundTripTest.cpp +++ b/tests/PremulAlphaRoundTripTest.cpp @@ -85,13 +85,12 @@ DEF_GPUTEST(PremulAlphaRoundTrip, reporter, factory) { if (!GrContextFactory::IsRenderingGLContext(type)) { continue; } - GrContext* context = factory->get(type); - if (NULL == context) { + GrContext* ctx = factory->get(type); + if (NULL == ctx) { continue; } - - device.reset(SkGpuDevice::Create(context, info, - SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType), 0)); + SkSurfaceProps props(SkSurfaceProps::kLegacyFontHost_InitType); + device.reset(SkGpuDevice::Create(ctx, SkSurface::kNo_Budgeted, info, 0, &props)); #else continue; #endif -- cgit v1.2.3