diff options
| author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-04 16:43:38 +0000 |
|---|---|---|
| committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-04 16:43:38 +0000 |
| commit | cf2f00872c559c892bb4b466bf678c7667490cce (patch) | |
| tree | 63761e3d9c72345055e0ea858c7d2cc5a4c2cc93 /tests/DrawBitmapRectTest.cpp | |
| parent | 3eb77e4d5a381fa55197f6bd03c599e709146069 (diff) | |
SkDiscardableMemoryPool to abstract class
Motivation - we want to keep our public headers small.
R=scroggo@google.com, reed@google.com
Author: halcanary@google.com
Review URL: https://codereview.chromium.org/223403012
git-svn-id: http://skia.googlecode.com/svn/trunk@14063 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/DrawBitmapRectTest.cpp')
| -rw-r--r-- | tests/DrawBitmapRectTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp index f51bf53cc8..f778480bcb 100644 --- a/tests/DrawBitmapRectTest.cpp +++ b/tests/DrawBitmapRectTest.cpp @@ -43,8 +43,8 @@ public: // static void test_faulty_pixelref(skiatest::Reporter* reporter) { // need a cache, but don't expect to use it, so the budget is not critical - SkAutoTUnref<SkDiscardableMemoryPool> pool(SkNEW_ARGS(SkDiscardableMemoryPool, - (10 * 1000, NULL))); + SkAutoTUnref<SkDiscardableMemoryPool> pool( + SkDiscardableMemoryPool::Create(10 * 1000, NULL)); SkBitmap bm; bool installSuccess = SkInstallDiscardablePixelRef(SkNEW(FailureImageGenerator), &bm, pool); REPORTER_ASSERT(reporter, installSuccess); |
