diff options
author | egdaniel <egdaniel@google.com> | 2015-04-16 11:22:42 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-16 11:22:42 -0700 |
commit | 8dc7c3a839b38b73af34cc2674a06f49eb1ce527 (patch) | |
tree | 8e0b5386124df537472c66769a73a276351d95f0 /src/gpu/GrStencilAttachment.cpp | |
parent | 9c798207b7c710148d7f2989e877a7ece62edd5e (diff) |
Rename GrStencilBuffer to GrStencilAttachment
BUG=skia:
Review URL: https://codereview.chromium.org/1083133002
Diffstat (limited to 'src/gpu/GrStencilAttachment.cpp')
-rw-r--r-- | src/gpu/GrStencilAttachment.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gpu/GrStencilAttachment.cpp b/src/gpu/GrStencilAttachment.cpp new file mode 100644 index 0000000000..9b07070b0f --- /dev/null +++ b/src/gpu/GrStencilAttachment.cpp @@ -0,0 +1,19 @@ + +/* + * Copyright 2011 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "GrStencilAttachment.h" +#include "GrResourceKey.h" + +void GrStencilAttachment::ComputeSharedStencilAttachmentKey(int width, int height, int sampleCnt, + GrUniqueKey* key) { + static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); + GrUniqueKey::Builder builder(key, kDomain, 3); + builder[0] = width; + builder[1] = height; + builder[2] = sampleCnt; +} |