blob: c8492bc3ad29f6f65a987407566e7b7e1f0b8c46 [file] [log] [blame]
commit-bot@chromium.org99017272013-11-08 18:45:27 +00001/*
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
bsalomon4b91f762015-05-19 09:29:46 -07008#include "Test.h"
commit-bot@chromium.org99017272013-11-08 18:45:27 +00009#if SK_SUPPORT_GPU
10
bsalomoneb1cb5c2015-05-22 08:01:09 -070011#include "GrCaps.h"
commit-bot@chromium.org99017272013-11-08 18:45:27 +000012#include "GrContext.h"
tfarina@chromium.org8f6884a2014-01-24 20:56:26 +000013#include "GrGpu.h"
commit-bot@chromium.org99017272013-11-08 18:45:27 +000014
bsalomonfda88072016-04-11 14:40:50 -070015DEF_GPUTEST_FOR_ALL_CONTEXTS(GrDrawTargetPrint, reporter, ctxInfo) {
commit-bot@chromium.org99017272013-11-08 18:45:27 +000016 // This used to assert.
bsalomon8b7451a2016-05-11 06:33:06 -070017 SkString result = ctxInfo.grContext()->caps()->dump();
commit-bot@chromium.org8b656c62013-11-21 15:23:15 +000018 SkASSERT(!result.isEmpty());
bsalomon8b7451a2016-05-11 06:33:06 -070019 SkString shaderResult = ctxInfo.grContext()->caps()->shaderCaps()->dump();
cdalton626e1ff2015-06-12 13:56:46 -070020 SkASSERT(!shaderResult.isEmpty());
commit-bot@chromium.org99017272013-11-08 18:45:27 +000021}
22
commit-bot@chromium.org99017272013-11-08 18:45:27 +000023#endif