blob: 83cb7597870ee8f215439710d177d1c968f47926 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SKIA_EXT_TEXTURE_HANDLE_H_
#define SKIA_EXT_TEXTURE_HANDLE_H_
#include "third_party/skia/include/gpu/gl/GrGLTypes.h"
namespace skia {
// TODO(bsalomon): Remove this conversion when Skia bug 5019 is fixed.
inline const GrGLTextureInfo* GrBackendObjectToGrGLTextureInfo(
GrBackendObject object) {
return reinterpret_cast<const GrGLTextureInfo*>(object);
}
} // namespace skia
#endif // SKIA_EXT_TEXTURE_HANDLE_H_