| 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 "LazyDecodeBitmap.h" | 8 #include "LazyDecodeBitmap.h" |
| 9 | 9 |
| 10 #include "SkData.h" | 10 #include "SkData.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 return false; | 33 return false; |
| 34 } | 34 } |
| 35 const SkImageInfo info = gen->getInfo(); | 35 const SkImageInfo info = gen->getInfo(); |
| 36 SkDiscardableMemory::Factory* pool = nullptr; | 36 SkDiscardableMemory::Factory* pool = nullptr; |
| 37 if ((!FLAGS_useVolatileCache) || (info.width() * info.height() < 32 * 1024))
{ | 37 if ((!FLAGS_useVolatileCache) || (info.width() * info.height() < 32 * 1024))
{ |
| 38 // how to do switching with SkDiscardableMemory. | 38 // how to do switching with SkDiscardableMemory. |
| 39 pool = SkGetGlobalDiscardableMemoryPool(); | 39 pool = SkGetGlobalDiscardableMemoryPool(); |
| 40 // Only meaningful if platform has a default discardable | 40 // Only meaningful if platform has a default discardable |
| 41 // memory implementation that differs from the global DM pool. | 41 // memory implementation that differs from the global DM pool. |
| 42 } | 42 } |
| 43 return SkInstallDiscardablePixelRef(gen.detach(), nullptr, dst, pool); | 43 return SkDEPRECATED_InstallDiscardablePixelRef(gen.detach(), nullptr, dst, p
ool); |
| 44 } | 44 } |
| OLD | NEW |