From e1da1d9a7dfa6c9ebdcbd2845acebd045edd2a6f Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Fri, 6 Oct 2017 15:59:27 -0400 Subject: Add option to create a deferred render target context with mips We need this since we have texture generators that draw the base level but nothing more. Thus we want them to be able to directly draw into a pre allocated mipped target instead of doing a copy later. TBR: bsalomon@google.com Bug: skia: Change-Id: I1dfae0da7153b21b30fdfa51a7061fc255739a1e Reviewed-on: https://skia-review.googlesource.com/54100 Reviewed-by: Brian Salomon Reviewed-by: Robert Phillips Commit-Queue: Greg Daniel --- tests/GLProgramsTest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/GLProgramsTest.cpp') diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp index bab5fa679e..522bb71db7 100644 --- a/tests/GLProgramsTest.cpp +++ b/tests/GLProgramsTest.cpp @@ -160,6 +160,7 @@ static sk_sp random_render_target_context(GrContext* cont kRGBA_8888_GrPixelConfig, nullptr, sampleCnt, + false, origin)); return renderTargetContext; } -- cgit v1.2.3