1 /* 2 * Copyright 2011 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #include "GrStencilAttachment.h" 9 #include "GrResourceKey.h" 10 ComputeSharedStencilAttachmentKey(int width,int height,int sampleCnt,GrUniqueKey * key)11void GrStencilAttachment::ComputeSharedStencilAttachmentKey(int width, int height, int sampleCnt, 12 GrUniqueKey* key) { 13 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); 14 GrUniqueKey::Builder builder(key, kDomain, 3); 15 builder[0] = width; 16 builder[1] = height; 17 builder[2] = sampleCnt; 18 } 19