aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrExternalTextureData.h
blob: 0ebc0534f1b08f548cecffec3511855a9dcf56a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * 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