Line data Source code
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 :
11 0 : void GrStencilAttachment::ComputeSharedStencilAttachmentKey(int width, int height, int sampleCnt,
12 : GrUniqueKey* key) {
13 0 : static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain();
14 0 : GrUniqueKey::Builder builder(key, kDomain, 3);
15 0 : builder[0] = width;
16 0 : builder[1] = height;
17 0 : builder[2] = sampleCnt;
18 0 : }
|