diff options
author | bsalomon <bsalomon@google.com> | 2015-05-29 09:45:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-29 09:45:57 -0700 |
commit | edd77a112dedd82dae78ccdd7177531569c4e6f7 (patch) | |
tree | 8a70c8be3dd11a09744d1ac7625887745da78bb8 /tests | |
parent | c4fba51ea6991258edfe04e7e0d25daabfafe4fc (diff) |
Remove GrContext from GrClipMaskCache
Review URL: https://codereview.chromium.org/1144013007
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ClipCacheTest.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/ClipCacheTest.cpp b/tests/ClipCacheTest.cpp index 71d0380ccb..c0ff7632c7 100644 --- a/tests/ClipCacheTest.cpp +++ b/tests/ClipCacheTest.cpp @@ -17,7 +17,7 @@ static const int Y_SIZE = 12; //////////////////////////////////////////////////////////////////////////////// // note: this is unused -static GrTexture* createTexture(GrContext* context) { +static GrTexture* create_texture(GrContext* context) { unsigned char textureData[X_SIZE][Y_SIZE][4]; memset(textureData, 0, 4* X_SIZE * Y_SIZE); @@ -133,11 +133,9 @@ static void check_empty_state(skiatest::Reporter* reporter, static void test_cache(skiatest::Reporter* reporter, GrContext* context) { if (false) { // avoid bit rot, suppress warning - createTexture(context); + create_texture(context); } - GrClipMaskCache cache; - - cache.setContext(context); + GrClipMaskCache cache(context->resourceProvider()); // check initial state check_empty_state(reporter, cache); |