/* * 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" class GrContext; class SK_API GrExternalTextureData : SkNoncopyable { public: virtual ~GrExternalTextureData() {} virtual GrBackend getBackend() const = 0; protected: virtual GrBackendObject getBackendObject() const = 0; virtual void attachToContext(GrContext*) = 0; friend class SkCrossContextImageData; friend class SkCCIDBackendTexture; friend class SkImage; }; #endif