| 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 // Disabling this test since it is for the layer hoister which is current disabl
ed. |
| 9 // The test fails when we add a discard to a newly created render target. |
| 10 #if 0 |
| 11 |
| 8 #if SK_SUPPORT_GPU | 12 #if SK_SUPPORT_GPU |
| 9 | 13 |
| 10 #include "GrContext.h" | 14 #include "GrContext.h" |
| 11 #include "GrLayerCache.h" | 15 #include "GrLayerCache.h" |
| 12 #include "GrResourceCache.h" | 16 #include "GrResourceCache.h" |
| 13 #include "SkPictureRecorder.h" | 17 #include "SkPictureRecorder.h" |
| 14 #include "Test.h" | 18 #include "Test.h" |
| 15 | 19 |
| 16 class TestingAccess { | 20 class TestingAccess { |
| 17 public: | 21 public: |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 cache.end(); | 364 cache.end(); |
| 361 | 365 |
| 362 #if GR_CACHE_STATS | 366 #if GR_CACHE_STATS |
| 363 resourceCache->getStats(&stats); | 367 resourceCache->getStats(&stats); |
| 364 REPORTER_ASSERT(reporter, 2 == stats.fTotal); | 368 REPORTER_ASSERT(reporter, 2 == stats.fTotal); |
| 365 REPORTER_ASSERT(reporter, 2 == stats.fNumPurgeable); | 369 REPORTER_ASSERT(reporter, 2 == stats.fNumPurgeable); |
| 366 #endif | 370 #endif |
| 367 } | 371 } |
| 368 | 372 |
| 369 #endif | 373 #endif |
| 374 #endif |
| OLD | NEW |