OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 // Include here to ensure SK_SUPPORT_GPU is set correctly before it is examined. | 8 // Include here to ensure SK_SUPPORT_GPU is set correctly before it is examined. |
9 #include "SkTypes.h" | 9 #include "SkTypes.h" |
10 | 10 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 smallMSAART0 && smallMSAART1 && | 180 smallMSAART0 && smallMSAART1 && |
181 smallMSAART0->asRenderTarget() && | 181 smallMSAART0->asRenderTarget() && |
182 smallMSAART1->asRenderTarget() && | 182 smallMSAART1->asRenderTarget() && |
183 resourceProvider->attachStencilAttachment(smallMSAART0->
asRenderTarget()) != | 183 resourceProvider->attachStencilAttachment(smallMSAART0->
asRenderTarget()) != |
184 resourceProvider->attachStencilAttachment(smallMSAART1->
asRenderTarget())); | 184 resourceProvider->attachStencilAttachment(smallMSAART1->
asRenderTarget())); |
185 } | 185 } |
186 } | 186 } |
187 } | 187 } |
188 | 188 |
189 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheWrappedResources, reporter, cont
ext) { | 189 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheWrappedResources, reporter, cont
ext) { |
190 const GrGpu* gpu = context->getGpu(); | 190 GrGpu* gpu = context->getGpu(); |
191 // this test is only valid for GL | 191 // this test is only valid for GL |
192 if (!gpu || !gpu->glContextForTesting()) { | 192 if (!gpu || !gpu->glContextForTesting()) { |
193 return; | 193 return; |
194 } | 194 } |
195 | 195 |
196 GrBackendObject texHandles[2]; | 196 GrBackendObject texHandles[2]; |
197 static const int kW = 100; | 197 static const int kW = 100; |
198 static const int kH = 100; | 198 static const int kH = 100; |
199 | 199 |
200 texHandles[0] = gpu->createTestingOnlyBackendTexture(nullptr, kW, kH, kRGBA_
8888_GrPixelConfig); | 200 texHandles[0] = gpu->createTestingOnlyBackendTexture(nullptr, kW, kH, kRGBA_
8888_GrPixelConfig); |
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1308 test_cache_chained_purge(reporter); | 1308 test_cache_chained_purge(reporter); |
1309 test_resource_size_changed(reporter); | 1309 test_resource_size_changed(reporter); |
1310 test_timestamp_wrap(reporter); | 1310 test_timestamp_wrap(reporter); |
1311 test_flush(reporter); | 1311 test_flush(reporter); |
1312 test_large_resource_count(reporter); | 1312 test_large_resource_count(reporter); |
1313 test_custom_data(reporter); | 1313 test_custom_data(reporter); |
1314 test_abandoned(reporter); | 1314 test_abandoned(reporter); |
1315 } | 1315 } |
1316 | 1316 |
1317 #endif | 1317 #endif |
OLD | NEW |