commit | 02611d9afdd887ee443825ac88377f2eea093380 | [log] [tgz] |
---|---|---|
author | Greg Daniel <egdaniel@google.com> | Tue Jul 25 10:05:01 2017 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Jul 25 14:33:03 2017 +0000 |
tree | 3e35b4e4fde4b6f387f7bdb345b049c1ab76e182 | |
parent | 10b6ad13f996d2f522bc057d17acea58e43a7f0b [diff] [blame] |
Add Make[backend] calls for creating GrContexts Docs-Preview: https://skia.org/?cl=26369 Bug: skia: Change-Id: I460ee63e466f85b05918479f068a2e5ca2d70550 Reviewed-on: https://skia-review.googlesource.com/26369 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp index b27aaea..48f50a0 100644 --- a/tests/ResourceCacheTest.cpp +++ b/tests/ResourceCacheTest.cpp
@@ -358,7 +358,7 @@ class Mock { public: Mock(int maxCnt, size_t maxBytes) { - fContext.reset(GrContext::Create(kMock_GrBackend, (GrBackendContext) nullptr)); + fContext = GrContext::MakeMock(nullptr); SkASSERT(fContext); fContext->setResourceCacheLimits(maxCnt, maxBytes); GrResourceCache* cache = fContext->getResourceCache();