aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrExternalTextureData.h
blob: 5943fd8c58667f346204d9a52412353eaf9ebe1c (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 SkCrossContextImageData;
    friend class SkImage;
};

#endif