From 81e7bf8d6d338d944f3c5075b14c21580398aeb6 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Wed, 19 Jul 2017 14:47:42 -0400 Subject: Update gpu caps for valid sample counts. Instead of query and maxSampleCount and using that to cap, we now have each config store its supported values and when requested returns either the next highest or equal supported value, or if non the max config supported. Bug: skia: Change-Id: I8802d44c13b3b1703ee54a7e69b82102d4b8dc2d Reviewed-on: https://skia-review.googlesource.com/24302 Commit-Queue: Greg Daniel Reviewed-by: Brian Salomon --- tests/GLProgramsTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/GLProgramsTest.cpp') diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp index 178676431f..f8cb6efb67 100644 --- a/tests/GLProgramsTest.cpp +++ b/tests/GLProgramsTest.cpp @@ -145,7 +145,7 @@ static sk_sp random_render_target_context(GrContext* cont const GrCaps* caps) { GrSurfaceOrigin origin = random->nextBool() ? kTopLeft_GrSurfaceOrigin : kBottomLeft_GrSurfaceOrigin; - int sampleCnt = random->nextBool() ? SkTMin(4, caps->maxSampleCount()) : 0; + int sampleCnt = random->nextBool() ? caps->getSampleCount(4, kRGBA_8888_GrPixelConfig) : 0; sk_sp renderTargetContext(context->makeDeferredRenderTargetContext( SkBackingFit::kExact, -- cgit v1.2.3