Skia Compute core files
Bug: skia:
Change-Id: I4bba49cf20eff013e581800a3f114c85acd8498c
Reviewed-on: https://skia-review.googlesource.com/135782
Reviewed-by: Mike Klein <mtklein@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
diff --git a/src/compute/sk/SkImage_Compute.cpp b/src/compute/sk/SkImage_Compute.cpp
new file mode 100644
index 0000000..039766f
--- /dev/null
+++ b/src/compute/sk/SkImage_Compute.cpp
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+//
+//
+//
+
+#include "SkImage_Compute.h"
+
+//
+//
+//
+
+#if SK_SUPPORT_GPU_COMPUTE
+
+//
+// C++
+//
+
+//
+//
+//
+
+SkImage_Compute::SkImage_Compute(sk_sp<SkContext_Compute> compute,
+ GrGLuint const snap,
+ int const width,
+ int const height)
+
+ : SkImage(width,height,0), // FIXME -- who provides unique id?
+ compute(compute),
+ snap(snap)
+{
+ ;
+}
+
+SkImage_Compute::~SkImage_Compute()
+{
+ // skc_interop_snap_dispose(compute->interop,snap); TODO skc.h
+}
+
+//
+//
+//
+
+#endif