OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SKIA_EXT_TEXTURE_HANDLE_H_ |
| 6 #define SKIA_EXT_TEXTURE_HANDLE_H_ |
| 7 |
| 8 #include "third_party/skia/include/gpu/gl/GrGLTypes.h" |
| 9 |
| 10 namespace skia { |
| 11 |
| 12 // TODO(bsalomon): Remove both of these conversions when Skia bug 5019 is fixed. |
| 13 inline GrBackendObject GrGLTextureInfoToGrBackendObject( |
| 14 const GrGLTextureInfo& info) { |
| 15 return reinterpret_cast<GrBackendObject>(&info); |
| 16 } |
| 17 |
| 18 inline const GrGLTextureInfo* GrBackendObjectToGrGLTextureInfo( |
| 19 GrBackendObject object) { |
| 20 return reinterpret_cast<const GrGLTextureInfo*>(object); |
| 21 } |
| 22 |
| 23 } // namespace skia |
| 24 |
| 25 #endif // SKIA_EXT_TEXTURE_HANDLE_H_ |
OLD | NEW |