2017-02-28 15:02:49 +00:00
|
|
|
/*
|
|
|
|
* 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"
|
2017-03-02 20:09:20 +00:00
|
|
|
|
|
|
|
class GrContext;
|
2017-02-28 15:02:49 +00:00
|
|
|
|
|
|
|
class SK_API GrExternalTextureData : SkNoncopyable {
|
|
|
|
public:
|
|
|
|
virtual ~GrExternalTextureData() {}
|
|
|
|
virtual GrBackend getBackend() const = 0;
|
|
|
|
protected:
|
|
|
|
virtual GrBackendObject getBackendObject() const = 0;
|
2017-03-02 20:09:20 +00:00
|
|
|
virtual void attachToContext(GrContext*) = 0;
|
2017-02-28 15:02:49 +00:00
|
|
|
|
|
|
|
friend class SkCrossContextImageData;
|
2017-03-02 20:09:20 +00:00
|
|
|
friend class SkImage;
|
2017-02-28 15:02:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|