| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 169                         smallMSAART0->asRenderTarget() && | 169                         smallMSAART0->asRenderTarget() && | 
| 170                         smallMSAART1->asRenderTarget() && | 170                         smallMSAART1->asRenderTarget() && | 
| 171                         smallMSAART0->asRenderTarget()->renderTargetPriv().getSt
      encilAttachment() != | 171                         smallMSAART0->asRenderTarget()->renderTargetPriv().getSt
      encilAttachment() != | 
| 172                         smallMSAART1->asRenderTarget()->renderTargetPriv().getSt
      encilAttachment()); | 172                         smallMSAART1->asRenderTarget()->renderTargetPriv().getSt
      encilAttachment()); | 
| 173         } | 173         } | 
| 174     } | 174     } | 
| 175 } | 175 } | 
| 176 | 176 | 
| 177 static void test_wrapped_resources(skiatest::Reporter* reporter, GrContext* cont
      ext) { | 177 static void test_wrapped_resources(skiatest::Reporter* reporter, GrContext* cont
      ext) { | 
| 178     const GrGpu* gpu = context->getGpu(); | 178     const GrGpu* gpu = context->getGpu(); | 
| 179     if (!gpu) { | 179     // this test is only valid for GL | 
|  | 180     if (!gpu || !gpu->glContextForTesting()) { | 
| 180         return; | 181         return; | 
| 181     } | 182     } | 
| 182 | 183 | 
| 183     GrBackendObject texIDs[2]; | 184     GrBackendObject texIDs[2]; | 
| 184     static const int kW = 100; | 185     static const int kW = 100; | 
| 185     static const int kH = 100; | 186     static const int kH = 100; | 
| 186 | 187 | 
| 187     texIDs[0] = gpu->createTestingOnlyBackendTexture(NULL, kW, kH, kRGBA_8888_Gr
      PixelConfig); | 188     texIDs[0] = gpu->createTestingOnlyBackendTexture(NULL, kW, kH, kRGBA_8888_Gr
      PixelConfig); | 
| 188     texIDs[1] = gpu->createTestingOnlyBackendTexture(NULL, kW, kH, kRGBA_8888_Gr
      PixelConfig); | 189     texIDs[1] = gpu->createTestingOnlyBackendTexture(NULL, kW, kH, kRGBA_8888_Gr
      PixelConfig); | 
| 189 | 190 | 
| (...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1257     test_scratch_key_consistency(reporter); | 1258     test_scratch_key_consistency(reporter); | 
| 1258     test_purge_invalidated(reporter); | 1259     test_purge_invalidated(reporter); | 
| 1259     test_cache_chained_purge(reporter); | 1260     test_cache_chained_purge(reporter); | 
| 1260     test_resource_size_changed(reporter); | 1261     test_resource_size_changed(reporter); | 
| 1261     test_timestamp_wrap(reporter); | 1262     test_timestamp_wrap(reporter); | 
| 1262     test_flush(reporter); | 1263     test_flush(reporter); | 
| 1263     test_large_resource_count(reporter); | 1264     test_large_resource_count(reporter); | 
| 1264 } | 1265 } | 
| 1265 | 1266 | 
| 1266 #endif | 1267 #endif | 
| OLD | NEW | 
|---|