1 /* 2 * Copyright 2013 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #include "Test.h" 9 #if SK_SUPPORT_GPU 10 11 #include "GrCaps.h" 12 #include "GrContext.h" 13 #include "GrGpu.h" 14 DEF_GPUTEST_FOR_ALL_CONTEXTS(GrDrawTargetPrint,reporter,ctxInfo)15DEF_GPUTEST_FOR_ALL_CONTEXTS(GrDrawTargetPrint, reporter, ctxInfo) { 16 // This used to assert. 17 SkString result = ctxInfo.grContext()->caps()->dump(); 18 SkASSERT(!result.isEmpty()); 19 SkString shaderResult = ctxInfo.grContext()->caps()->shaderCaps()->dump(); 20 SkASSERT(!shaderResult.isEmpty()); 21 } 22 23 #endif 24