blob: 9ab819ce701efceb0fc90442875e40716da224d7 [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"
#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