2013-11-08 18:45:27 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2013 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
2015-05-19 16:29:46 +00:00
|
|
|
#include "Test.h"
|
2013-11-08 18:45:27 +00:00
|
|
|
#if SK_SUPPORT_GPU
|
|
|
|
|
2015-05-22 15:01:09 +00:00
|
|
|
#include "GrCaps.h"
|
2013-11-08 18:45:27 +00:00
|
|
|
#include "GrContext.h"
|
2014-01-24 20:56:26 +00:00
|
|
|
#include "GrGpu.h"
|
2013-11-08 18:45:27 +00:00
|
|
|
|
2016-04-11 21:40:50 +00:00
|
|
|
DEF_GPUTEST_FOR_ALL_CONTEXTS(GrDrawTargetPrint, reporter, ctxInfo) {
|
2013-11-08 18:45:27 +00:00
|
|
|
// This used to assert.
|
2016-05-11 13:33:06 +00:00
|
|
|
SkString result = ctxInfo.grContext()->caps()->dump();
|
2013-11-21 15:23:15 +00:00
|
|
|
SkASSERT(!result.isEmpty());
|
2016-05-11 13:33:06 +00:00
|
|
|
SkString shaderResult = ctxInfo.grContext()->caps()->shaderCaps()->dump();
|
2015-06-12 20:56:46 +00:00
|
|
|
SkASSERT(!shaderResult.isEmpty());
|
2013-11-08 18:45:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|