aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-09 10:49:39 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-09 10:49:39 +0000
commit5091b7094ba4708451ea73b4fdd8020d8aaa7d23 (patch)
tree6193694e45aa3e0a4c230753c556c8a6964fa633 /src
parente012e0a3414e8ab93dc90fd139256f2a71fc6f9f (diff)
Added resource domain to GrTextureDesc
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrStencilBuffer.cpp2
-rw-r--r--src/gpu/GrTexture.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrStencilBuffer.cpp b/src/gpu/GrStencilBuffer.cpp
index bacbe78d7f..07ee661d01 100644
--- a/src/gpu/GrStencilBuffer.cpp
+++ b/src/gpu/GrStencilBuffer.cpp
@@ -66,7 +66,7 @@ void gen_stencil_key_values(int width,
GrCacheID* cacheID) {
cacheID->fPublicID = GrCacheID::kDefaultPublicCacheID;
cacheID->fResourceSpecific32 = width | (height << 16);
- cacheID->fDomain = GrCacheID::kUnrestricted_ResourceDomain;
+ cacheID->fDomain = kUnrestricted_ResourceDomain;
GrAssert(sampleCnt >= 0 && sampleCnt < 256);
cacheID->fResourceSpecific16 = sampleCnt << 8;
diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp
index ac17a104c4..208bd2ed57 100644
--- a/src/gpu/GrTexture.cpp
+++ b/src/gpu/GrTexture.cpp
@@ -151,7 +151,7 @@ void gen_texture_key_values(const GrGpu* gpu,
}
cacheID->fPublicID = clientKey;
- cacheID->fDomain = GrCacheID::kUnrestricted_ResourceDomain;
+ cacheID->fDomain = desc.fResourceDomain;
// we assume we only need 16 bits of width and height
// assert that texture creation will fail anyway if this assumption