diff options
author | 2012-06-07 12:08:45 +0000 | |
---|---|---|
committer | 2012-06-07 12:08:45 +0000 | |
commit | 75b3c9633cb9a594dab0ccf51dab1e694c149a18 (patch) | |
tree | ec4669cda6d54e286bf9b92f6495d733cfd58033 /src/gpu/GrClipMaskManager.cpp | |
parent | 93b4375fd4d87d3502d14d5e6a98383993b2600c (diff) |
Move clientID into texture desc
http://codereview.appspot.com/6305044/
git-svn-id: http://skia.googlecode.com/svn/trunk@4201 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrClipMaskManager.cpp')
-rw-r--r-- | src/gpu/GrClipMaskManager.cpp | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp index c0272bbd5d..28ce46d27e 100644 --- a/src/gpu/GrClipMaskManager.cpp +++ b/src/gpu/GrClipMaskManager.cpp @@ -481,13 +481,11 @@ void GrClipMaskManager::getTemp(const GrIRect& bounds, return; } - const GrTextureDesc desc = { - kRenderTarget_GrTextureFlagBit|kNoStencil_GrTextureFlagBit, - bounds.width(), - bounds.height(), - kAlpha_8_GrPixelConfig, - 0 // samples - }; + GrTextureDesc desc; + desc.fFlags = kRenderTarget_GrTextureFlagBit|kNoStencil_GrTextureFlagBit; + desc.fWidth = bounds.width(); + desc.fHeight = bounds.height(); + desc.fConfig = kAlpha_8_GrPixelConfig; temp->set(this->getContext(), desc); } @@ -499,13 +497,11 @@ void GrClipMaskManager::setupCache(const GrClip& clipIn, // Free up the currently cached mask so it can be reused fAACache.reset(); - const GrTextureDesc desc = { - kRenderTarget_GrTextureFlagBit|kNoStencil_GrTextureFlagBit, - bounds.width(), - bounds.height(), - kAlpha_8_GrPixelConfig, - 0 // samples - }; + GrTextureDesc desc; + desc.fFlags = kRenderTarget_GrTextureFlagBit|kNoStencil_GrTextureFlagBit; + desc.fWidth = bounds.width(); + desc.fHeight = bounds.height(); + desc.fConfig = kAlpha_8_GrPixelConfig; fAACache.acquireMask(clipIn, desc, bounds); } |