| 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 | 8 |
| 9 #include "GrResourceCache.h" | 9 #include "GrResourceCache.h" |
| 10 |
| 11 #include "GrCaps.h" |
| 10 #include "GrGpuResourceCacheAccess.h" | 12 #include "GrGpuResourceCacheAccess.h" |
| 11 #include "GrTracing.h" | 13 #include "GrTracing.h" |
| 12 #include "SkChecksum.h" | 14 #include "SkChecksum.h" |
| 13 #include "SkGr.h" | 15 #include "SkGr.h" |
| 14 #include "SkMessageBus.h" | 16 #include "SkMessageBus.h" |
| 15 #include "SkTSort.h" | 17 #include "SkTSort.h" |
| 16 | 18 |
| 17 DECLARE_SKMESSAGEBUS_MESSAGE(GrUniqueKeyInvalidatedMessage); | 19 DECLARE_SKMESSAGEBUS_MESSAGE(GrUniqueKeyInvalidatedMessage); |
| 18 | 20 |
| 19 ////////////////////////////////////////////////////////////////////////////// | 21 ////////////////////////////////////////////////////////////////////////////// |
| (...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 return true; | 771 return true; |
| 770 } | 772 } |
| 771 if (index < fNonpurgeableResources.count() && fNonpurgeableResources[index]
== resource) { | 773 if (index < fNonpurgeableResources.count() && fNonpurgeableResources[index]
== resource) { |
| 772 return true; | 774 return true; |
| 773 } | 775 } |
| 774 SkDEBUGFAIL("Resource index should be -1 or the resource should be in the ca
che."); | 776 SkDEBUGFAIL("Resource index should be -1 or the resource should be in the ca
che."); |
| 775 return false; | 777 return false; |
| 776 } | 778 } |
| 777 | 779 |
| 778 #endif | 780 #endif |
| OLD | NEW |