Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: src/gpu/GrResourceCache.h

Issue 222473002: SkTDynamicHash: pick up GetKey(), Hash() from T by default. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkTDynamicHash.h ('k') | src/gpu/GrTMultiMap.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/core/SkTDynamicHash.h ('k') | src/gpu/GrTMultiMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698