OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 | 7 |
8 #ifndef DMGpuSupport_DEFINED | 8 #ifndef DMGpuSupport_DEFINED |
9 #define DMGpuSupport_DEFINED | 9 #define DMGpuSupport_DEFINED |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 kNative_GLContextType = 0, | 77 kNative_GLContextType = 0, |
78 kNull_GLContextType = 0; | 78 kNull_GLContextType = 0; |
79 static const int kGLContextTypeCnt = 1; | 79 static const int kGLContextTypeCnt = 1; |
80 enum GLContextOptions { | 80 enum GLContextOptions { |
81 kNone_GLContextOptions = 0, | 81 kNone_GLContextOptions = 0, |
82 kEnableNVPR_GLContextOptions = 0x1, | 82 kEnableNVPR_GLContextOptions = 0x1, |
83 }; | 83 }; |
84 void destroyContexts() {} | 84 void destroyContexts() {} |
85 | 85 |
86 void abandonContexts() {} | 86 void abandonContexts() {} |
| 87 |
| 88 void releaseResourcesAndAbandonContexts() {} |
87 }; | 89 }; |
88 } // namespace sk_gpu_test | 90 } // namespace sk_gpu_test |
89 | 91 |
90 namespace DM { | 92 namespace DM { |
91 | 93 |
92 static const bool kGPUDisabled = true; | 94 static const bool kGPUDisabled = true; |
93 | 95 |
94 static inline SkSurface* NewGpuSurface(sk_gpu_test::GrContextFactory*, | 96 static inline SkSurface* NewGpuSurface(sk_gpu_test::GrContextFactory*, |
95 sk_gpu_test::GrContextFactory::GLContextT
ype, | 97 sk_gpu_test::GrContextFactory::GLContextT
ype, |
96 sk_gpu_test::GrContextFactory::GLContextO
ptions, | 98 sk_gpu_test::GrContextFactory::GLContextO
ptions, |
97 SkImageInfo, | 99 SkImageInfo, |
98 int, | 100 int, |
99 bool) { | 101 bool) { |
100 return nullptr; | 102 return nullptr; |
101 } | 103 } |
102 | 104 |
103 } // namespace DM | 105 } // namespace DM |
104 | 106 |
105 #endif//SK_SUPPORT_GPU | 107 #endif//SK_SUPPORT_GPU |
106 | 108 |
107 #endif//DMGpuSupport_DEFINED | 109 #endif//DMGpuSupport_DEFINED |
OLD | NEW |