commit | 6e4e65066a7c0dbc9bfbfe4b8f5d49c3d8a79b59 | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Feb 25 20:12:45 2013 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Feb 25 20:12:45 2013 +0000 |
tree | caa7c55e08c30f3358e6c788056d4ce064c8d487 | |
parent | 04115a102c8c46b9a6fdcaaa9626f8f92cead49b [diff] [blame] |
Give GrDrawTarget a back ptr to its owning GrContext. Review URL: https://codereview.appspot.com/7395055 git-svn-id: http://skia.googlecode.com/svn/trunk@7850 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp index 1bbb885..3bdb332 100644 --- a/src/gpu/GrClipMaskManager.cpp +++ b/src/gpu/GrClipMaskManager.cpp
@@ -991,3 +991,8 @@ void GrClipMaskManager::releaseResources() { fAACache.releaseResources(); } + +void GrClipMaskManager::setGpu(GrGpu* gpu) { + fGpu = gpu; + fAACache.setContext(gpu->getContext()); +}