aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkLayerInfo.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2014-11-12 09:32:34 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-12 09:32:34 -0800
commit82365915476caedc130d0e36012a1ce0c007c4ae (patch)
tree09a36cd23f34cdd609b4279ecad52c0b0b3868ac /src/core/SkLayerInfo.cpp
parentac6a2f964ee9821df6a4a8f3c46796322a4c37b8 (diff)
Rename GrAccelData to SkLayerInfo and move it to src/core
Diffstat (limited to 'src/core/SkLayerInfo.cpp')
-rw-r--r--src/core/SkLayerInfo.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core/SkLayerInfo.cpp b/src/core/SkLayerInfo.cpp
new file mode 100644
index 0000000000..d427fa7c21
--- /dev/null
+++ b/src/core/SkLayerInfo.cpp
@@ -0,0 +1,15 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "SkLayerInfo.h"
+
+SkPicture::AccelData::Key SkLayerInfo::ComputeKey() {
+ static const SkPicture::AccelData::Key gGPUID = SkPicture::AccelData::GenerateDomain();
+
+ return gGPUID;
+}
+