0cf45f607c
This is needed for a follow up CL where we switch from using GrBackendTextureDesc to GrBackendTexture. Bug: skia: Change-Id: Id12d3357af1cc7f30c7f9196e614089779dc0715 Reviewed-on: https://skia-review.googlesource.com/13588 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
29 lines
606 B
C++
29 lines
606 B
C++
/*
|
|
* 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 SkCCIDBackendTexture;
|
|
friend class SkImage;
|
|
};
|
|
|
|
#endif
|