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
|
|
|
|
2015-12-01 12:35:26 +00:00
|
|
|
DEF_GPUTEST_FOR_ALL_CONTEXTS(GrDrawTargetPrint, reporter, context) {
|
2013-11-08 18:45:27 +00:00
|
|
|
// This used to assert.
|
2015-12-01 12:35:26 +00:00
|
|
|
SkString result = context->caps()->dump();
|
2013-11-21 15:23:15 +00:00
|
|
|
SkASSERT(!result.isEmpty());
|
2015-12-01 12:35:26 +00:00
|
|
|
SkString shaderResult = context->caps()->shaderCaps()->dump();
|
2015-06-12 20:56:46 +00:00
|
|
|
SkASSERT(!shaderResult.isEmpty());
|
2013-11-08 18:45:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|