diff options
Diffstat (limited to 'include/gpu/GrExternalTextureData.h')
-rw-r--r-- | include/gpu/GrExternalTextureData.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/gpu/GrExternalTextureData.h b/include/gpu/GrExternalTextureData.h new file mode 100644 index 0000000000..9ab819ce70 --- /dev/null +++ b/include/gpu/GrExternalTextureData.h @@ -0,0 +1,30 @@ +/* + * Copyright 2017 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + + +#ifndef GrExternalTextureData_DEFINED +#define GrExternalTextureData_DEFINED + +#include "GrTypes.h" +#include "GrTypesPriv.h" + +class SK_API GrExternalTextureData : SkNoncopyable { +public: + GrExternalTextureData(GrFence fence) : fFence(fence) {} + virtual ~GrExternalTextureData() {} + virtual GrBackend getBackend() const = 0; + GrFence getFence() const { return fFence; } + +protected: + virtual GrBackendObject getBackendObject() const = 0; + + GrFence fFence; + + friend class SkCrossContextImageData; +}; + +#endif |