skia2/include/gpu/GrExternalTextureData.h
Brian Osman fe3b51636d Use GrSemaphore rather than GrFence for external texture data
BUG=skia:

Change-Id: I0d23eb9dcf5c01c71d3571ef97690af68b900807
Reviewed-on: https://skia-review.googlesource.com/9141
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2017-03-02 20:47:36 +00:00

29 lines
609 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 SkCrossContextImageData;
friend class SkImage;
};
#endif