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

Side by Side Diff: src/core/SkResourceCache.cpp

Issue 1148973002: purge imagefilter cache so we can better track leaks (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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
« src/core/SkImageFilter.cpp ('K') | « src/core/SkPixelRef.cpp ('k') | no next file » | 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 * 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 "SkChecksum.h" 8 #include "SkChecksum.h"
9 #include "SkMessageBus.h" 9 #include "SkMessageBus.h"
10 #include "SkMipMap.h" 10 #include "SkMipMap.h"
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 611
612 void SkResourceCache::PostPurgeSharedID(uint64_t sharedID) { 612 void SkResourceCache::PostPurgeSharedID(uint64_t sharedID) {
613 if (sharedID) { 613 if (sharedID) {
614 SkMessageBus<PurgeSharedIDMessage>::Post(PurgeSharedIDMessage(sharedID)) ; 614 SkMessageBus<PurgeSharedIDMessage>::Post(PurgeSharedIDMessage(sharedID)) ;
615 } 615 }
616 } 616 }
617 617
618 /////////////////////////////////////////////////////////////////////////////// 618 ///////////////////////////////////////////////////////////////////////////////
619 619
620 #include "SkGraphics.h" 620 #include "SkGraphics.h"
621 #include "SkImageFilter.h"
621 622
622 size_t SkGraphics::GetResourceCacheTotalBytesUsed() { 623 size_t SkGraphics::GetResourceCacheTotalBytesUsed() {
623 return SkResourceCache::GetTotalBytesUsed(); 624 return SkResourceCache::GetTotalBytesUsed();
624 } 625 }
625 626
626 size_t SkGraphics::GetResourceCacheTotalByteLimit() { 627 size_t SkGraphics::GetResourceCacheTotalByteLimit() {
627 return SkResourceCache::GetTotalByteLimit(); 628 return SkResourceCache::GetTotalByteLimit();
628 } 629 }
629 630
630 size_t SkGraphics::SetResourceCacheTotalByteLimit(size_t newLimit) { 631 size_t SkGraphics::SetResourceCacheTotalByteLimit(size_t newLimit) {
631 return SkResourceCache::SetTotalByteLimit(newLimit); 632 return SkResourceCache::SetTotalByteLimit(newLimit);
632 } 633 }
633 634
634 size_t SkGraphics::GetResourceCacheSingleAllocationByteLimit() { 635 size_t SkGraphics::GetResourceCacheSingleAllocationByteLimit() {
635 return SkResourceCache::GetSingleAllocationByteLimit(); 636 return SkResourceCache::GetSingleAllocationByteLimit();
636 } 637 }
637 638
638 size_t SkGraphics::SetResourceCacheSingleAllocationByteLimit(size_t newLimit) { 639 size_t SkGraphics::SetResourceCacheSingleAllocationByteLimit(size_t newLimit) {
639 return SkResourceCache::SetSingleAllocationByteLimit(newLimit); 640 return SkResourceCache::SetSingleAllocationByteLimit(newLimit);
640 } 641 }
641 642
642 void SkGraphics::PurgeResourceCache() { 643 void SkGraphics::PurgeResourceCache() {
644 SkImageFilter::PurgeCache();
643 return SkResourceCache::PurgeAll(); 645 return SkResourceCache::PurgeAll();
644 } 646 }
645 647
OLDNEW
« src/core/SkImageFilter.cpp ('K') | « src/core/SkPixelRef.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698