blob: 5943fd8c58667f346204d9a52412353eaf9ebe1c [file] [log] [blame]
/*
* 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 SkImage;
};
#endif