| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 | 10 |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 enum BudgetBehaviors { | 308 enum BudgetBehaviors { |
| 309 kAccountFor_BudgetBehavior, | 309 kAccountFor_BudgetBehavior, |
| 310 kIgnore_BudgetBehavior | 310 kIgnore_BudgetBehavior |
| 311 }; | 311 }; |
| 312 | 312 |
| 313 void internalDetach(GrResourceEntry*, BudgetBehaviors behavior = kAccountFor
_BudgetBehavior); | 313 void internalDetach(GrResourceEntry*, BudgetBehaviors behavior = kAccountFor
_BudgetBehavior); |
| 314 void attachToHead(GrResourceEntry*, BudgetBehaviors behavior = kAccountFor_B
udgetBehavior); | 314 void attachToHead(GrResourceEntry*, BudgetBehaviors behavior = kAccountFor_B
udgetBehavior); |
| 315 | 315 |
| 316 void removeInvalidResource(GrResourceEntry* entry); | 316 void removeInvalidResource(GrResourceEntry* entry); |
| 317 | 317 |
| 318 GrTMultiMap<GrResourceEntry, | 318 GrTMultiMap<GrResourceEntry, GrResourceKey> fCache; |
| 319 GrResourceKey, | |
| 320 GrResourceEntry::GetKey, | |
| 321 GrResourceEntry::Hash> fCache; | |
| 322 | 319 |
| 323 // We're an internal doubly linked list | 320 // We're an internal doubly linked list |
| 324 typedef SkTInternalLList<GrResourceEntry> EntryList; | 321 typedef SkTInternalLList<GrResourceEntry> EntryList; |
| 325 EntryList fList; | 322 EntryList fList; |
| 326 | 323 |
| 327 #ifdef SK_DEBUG | 324 #ifdef SK_DEBUG |
| 328 // These objects cannot be returned by a search | 325 // These objects cannot be returned by a search |
| 329 EntryList fExclusiveList; | 326 EntryList fExclusiveList; |
| 330 #endif | 327 #endif |
| 331 | 328 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 GrResourceCache* fCache; | 375 GrResourceCache* fCache; |
| 379 }; | 376 }; |
| 380 #else | 377 #else |
| 381 class GrAutoResourceCacheValidate { | 378 class GrAutoResourceCacheValidate { |
| 382 public: | 379 public: |
| 383 GrAutoResourceCacheValidate(GrResourceCache*) {} | 380 GrAutoResourceCacheValidate(GrResourceCache*) {} |
| 384 }; | 381 }; |
| 385 #endif | 382 #endif |
| 386 | 383 |
| 387 #endif | 384 #endif |
| OLD | NEW |