blob: 3f2b28f50195663605246a3b98e2a88d3fb4dd56 [file] [log] [blame]
bsalomon@google.com558a75b2011-08-08 17:01:14 +00001
2/*
3 * Copyright 2011 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9#include "GrStencilBuffer.h"
bsalomon7775c852014-12-30 12:50:52 -080010#include "GrResourceKey.h"
bsalomon@google.com558a75b2011-08-08 17:01:14 +000011
bsalomon02a44a42015-02-19 09:09:00 -080012void GrStencilBuffer::ComputeSharedStencilBufferKey(int width, int height, int sampleCnt,
13 GrUniqueKey* key) {
14 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain();
15 GrUniqueKey::Builder builder(key, kDomain, 3);
16 builder[0] = width;
17 builder[1] = height;
18 builder[2] = sampleCnt;
robertphillips@google.com46a86002012-08-08 10:42:44 +000019}