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
diff --git a/tests/ClipCacheTest.cpp b/tests/ClipCacheTest.cpp
index ae3337e..249bd58 100644
--- a/tests/ClipCacheTest.cpp
+++ b/tests/ClipCacheTest.cpp
@@ -26,7 +26,6 @@
desc.fConfig = kSkia8888_PM_GrPixelConfig;
desc.fWidth = X_SIZE;
desc.fHeight = Y_SIZE;
- desc.fSampleCnt = 0;
// We are initializing the texture with zeros here
GrTexture* texture = context->createUncachedTexture(desc, textureData, 0);
@@ -83,13 +82,11 @@
GrClip clip1;
clip1.setFromIRect(bound1);
- const GrTextureDesc desc = {
- kRenderTarget_GrTextureFlagBit,
- X_SIZE,
- Y_SIZE,
- kSkia8888_PM_GrPixelConfig,
- 0
- };
+ GrTextureDesc desc;
+ desc.fFlags = kRenderTarget_GrTextureFlagBit;
+ desc.fWidth = X_SIZE;
+ desc.fHeight = Y_SIZE;
+ desc.fConfig = kSkia8888_PM_GrPixelConfig;
cache.acquireMask(clip1, desc, bound1);