• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2017 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 
9 #ifndef GrExternalTextureData_DEFINED
10 #define GrExternalTextureData_DEFINED
11 
12 #include "GrTypes.h"
13 
14 class GrContext;
15 
16 class SK_API GrExternalTextureData : SkNoncopyable {
17 public:
~GrExternalTextureData()18     virtual ~GrExternalTextureData() {}
19     virtual GrBackend getBackend() const = 0;
20 protected:
21     virtual GrBackendObject getBackendObject() const = 0;
22     virtual void attachToContext(GrContext*) = 0;
23 
24     friend class SkCrossContextImageData;
25     friend class SkImage;
26 };
27 
28 #endif
29