aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrStencilAttachment.cpp
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2015-04-16 11:22:42 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-16 11:22:42 -0700
commit8dc7c3a839b38b73af34cc2674a06f49eb1ce527 (patch)
tree8e0b5386124df537472c66769a73a276351d95f0 /src/gpu/GrStencilAttachment.cpp
parent9c798207b7c710148d7f2989e877a7ece62edd5e (diff)
Rename GrStencilBuffer to GrStencilAttachment
Diffstat (limited to 'src/gpu/GrStencilAttachment.cpp')
-rw-r--r--src/gpu/GrStencilAttachment.cpp19
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;
+}