aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrClipMaskManager.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-07 12:08:45 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-07 12:08:45 +0000
commit75b3c9633cb9a594dab0ccf51dab1e694c149a18 (patch)
treeec4669cda6d54e286bf9b92f6495d733cfd58033 /src/gpu/GrClipMaskManager.cpp
parent93b4375fd4d87d3502d14d5e6a98383993b2600c (diff)
Move clientID into texture desc
Diffstat (limited to 'src/gpu/GrClipMaskManager.cpp')
-rw-r--r--src/gpu/GrClipMaskManager.cpp24
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);
}