| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |