| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "GrContextFactory.h" | 9 #include "GrContextFactory.h" |
| 10 #include "gl/GLTestContext.h" | 10 #include "gl/GLTestContext.h" |
| 11 | 11 |
| 12 #if SK_ANGLE | 12 #if SK_ANGLE |
| 13 #include "gl/angle/GLTestContext_angle.h" | 13 #include "gl/angle/GLTestContext_angle.h" |
| 14 #endif | 14 #endif |
| 15 #if SK_COMMAND_BUFFER | 15 #if SK_COMMAND_BUFFER |
| 16 #include "gl/command_buffer/GLTestContext_command_buffer.h" | 16 #include "gl/command_buffer/GLTestContext_command_buffer.h" |
| 17 #endif | 17 #endif |
| 18 #include "gl/debug/DebugGLTestContext.h" | 18 #include "gl/debug/DebugGLTestContext.h" |
| 19 #if SK_MESA | 19 #if SK_MESA |
| 20 #include "gl/mesa/GLTestContext_mesa.h" | 20 #include "gl/mesa/GLTestContext_mesa.h" |
| 21 #endif | 21 #endif |
| 22 #if SK_VULKAN | 22 #ifdef SK_VULKAN |
| 23 #include "vk/VkTestContext.h" | 23 #include "vk/VkTestContext.h" |
| 24 #endif | 24 #endif |
| 25 #include "gl/null/NullGLTestContext.h" | 25 #include "gl/null/NullGLTestContext.h" |
| 26 #include "gl/GrGLGpu.h" | 26 #include "gl/GrGLGpu.h" |
| 27 #include "GrCaps.h" | 27 #include "GrCaps.h" |
| 28 | 28 |
| 29 namespace sk_gpu_test { | 29 namespace sk_gpu_test { |
| 30 GrContextFactory::GrContextFactory() { } | 30 GrContextFactory::GrContextFactory() { } |
| 31 | 31 |
| 32 GrContextFactory::GrContextFactory(const GrContextOptions& opts) | 32 GrContextFactory::GrContextFactory(const GrContextOptions& opts) |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 Context& context = fContexts.push_back(); | 206 Context& context = fContexts.push_back(); |
| 207 context.fBackend = backend; | 207 context.fBackend = backend; |
| 208 context.fTestContext = testCtx.release(); | 208 context.fTestContext = testCtx.release(); |
| 209 context.fGrContext = SkRef(grCtx.get()); | 209 context.fGrContext = SkRef(grCtx.get()); |
| 210 context.fType = type; | 210 context.fType = type; |
| 211 context.fOptions = options; | 211 context.fOptions = options; |
| 212 context.fAbandoned = false; | 212 context.fAbandoned = false; |
| 213 return ContextInfo(context.fBackend, context.fTestContext, context.fGrContex
t); | 213 return ContextInfo(context.fBackend, context.fTestContext, context.fGrContex
t); |
| 214 } | 214 } |
| 215 } // namespace sk_gpu_test | 215 } // namespace sk_gpu_test |
| OLD | NEW |