Allan MacKinnon | 4359d52 | 2018-06-19 13:57:04 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | // |
| 9 | // |
| 10 | // |
| 11 | |
| 12 | #include "SkImage_Compute.h" |
| 13 | |
| 14 | // |
| 15 | // |
| 16 | // |
| 17 | |
| 18 | #if SK_SUPPORT_GPU_COMPUTE |
| 19 | |
| 20 | // |
| 21 | // C++ |
| 22 | // |
| 23 | |
| 24 | // |
| 25 | // |
| 26 | // |
| 27 | |
| 28 | SkImage_Compute::SkImage_Compute(sk_sp<SkContext_Compute> compute, |
| 29 | GrGLuint const snap, |
| 30 | int const width, |
| 31 | int const height) |
| 32 | |
| 33 | : SkImage(width,height,0), // FIXME -- who provides unique id? |
| 34 | compute(compute), |
| 35 | snap(snap) |
| 36 | { |
| 37 | ; |
| 38 | } |
| 39 | |
| 40 | SkImage_Compute::~SkImage_Compute() |
| 41 | { |
| 42 | // skc_interop_snap_dispose(compute->interop,snap); TODO skc.h |
| 43 | } |
| 44 | |
| 45 | // |
| 46 | // |
| 47 | // |
| 48 | |
| 49 | #endif |