OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | 8 |
10 #include "GrGpuFactory.h" | 9 #include "GrGpuFactory.h" |
11 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
29 GrGpu* GrGpu::Create(GrBackend backend, | 28 GrGpu* GrGpu::Create(GrBackend backend, |
30 GrBackendContext backendContext, | 29 GrBackendContext backendContext, |
31 const GrContextOptions& options, | 30 const GrContextOptions& options, |
32 GrContext* context) { | 31 GrContext* context) { |
33 SkASSERT((int)backend < kBackendCount); | 32 SkASSERT((int)backend < kBackendCount); |
34 if (!gGpuFactories[backend]) { | 33 if (!gGpuFactories[backend]) { |
35 return nullptr; | 34 return nullptr; |
36 } | 35 } |
37 return (gGpuFactories[backend])(backendContext, options, context); | 36 return (gGpuFactories[backend])(backendContext, options, context); |
38 } | 37 } |
OLD | NEW |