| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 #ifndef skiatest_Test_DEFINED | 7 #ifndef skiatest_Test_DEFINED |
| 8 #define skiatest_Test_DEFINED | 8 #define skiatest_Test_DEFINED |
| 9 | 9 |
| 10 #include "SkString.h" | 10 #include "SkString.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 reporter, context_info) | 175 reporter, context_info) |
| 176 #define DEF_GPUTEST_FOR_ALL_GL_CONTEXTS(name, reporter, context_info)
\ | 176 #define DEF_GPUTEST_FOR_ALL_GL_CONTEXTS(name, reporter, context_info)
\ |
| 177 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsGLContextType, reporter, con
text_info) | 177 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsGLContextType, reporter, con
text_info) |
| 178 #define DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(name, reporter, context_info)
\ | 178 #define DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(name, reporter, context_info)
\ |
| 179 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsRenderingGLContextType, repo
rter, context_info) | 179 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsRenderingGLContextType, repo
rter, context_info) |
| 180 #define DEF_GPUTEST_FOR_NULLGL_CONTEXT(name, reporter, context_info)
\ | 180 #define DEF_GPUTEST_FOR_NULLGL_CONTEXT(name, reporter, context_info)
\ |
| 181 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsNullGLContextType, reporter,
context_info) | 181 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsNullGLContextType, reporter,
context_info) |
| 182 #define DEF_GPUTEST_FOR_VULKAN_CONTEXT(name, reporter, context_info)
\ | 182 #define DEF_GPUTEST_FOR_VULKAN_CONTEXT(name, reporter, context_info)
\ |
| 183 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsVulkanContextType, reporter,
context_info) | 183 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsVulkanContextType, reporter,
context_info) |
| 184 | 184 |
| 185 #define REQUIRE_PDF_DOCUMENT(TEST_NAME, REPORTER) \ | 185 #define REQUIRE_PDF_DOCUMENT(TEST_NAME, REPORTER) \ |
| 186 do { \ | 186 do { \ |
| 187 SkDynamicMemoryWStream testStream; \ | 187 SkDynamicMemoryWStream testStream; \ |
| 188 SkAutoTUnref<SkDocument> testDoc(SkDocument::CreatePDF(&testStream)); \ | 188 sk_sp<SkDocument> testDoc(SkDocument::MakePDF(&testStream)); \ |
| 189 if (!testDoc) { \ | 189 if (!testDoc) { \ |
| 190 INFOF(REPORTER, "PDF disabled; %s test skipped.", #TEST_NAME); \ | 190 INFOF(REPORTER, "PDF disabled; %s test skipped.", #TEST_NAME); \ |
| 191 return; \ | 191 return; \ |
| 192 } \ | 192 } \ |
| 193 } while (false) | 193 } while (false) |
| 194 | 194 |
| 195 #endif | 195 #endif |
| OLD | NEW |