Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Unified Diff: skia/ext/texture_handle.h

Issue 1508903002: Use GrGLTextureInfo for Skia texture handles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ignore_gl_target
Patch Set: Set target type in from mailbox in skcanvas_video_renderer Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/config/SkUserConfig.h ('k') | third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/texture_handle.h
diff --git a/skia/ext/texture_handle.h b/skia/ext/texture_handle.h
new file mode 100644
index 0000000000000000000000000000000000000000..a5409c5f4c950d19790cc177e6fdd2325b0c0035
--- /dev/null
+++ b/skia/ext/texture_handle.h
@@ -0,0 +1,25 @@
+// 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 both of these conversions when Skia bug 5019 is fixed.
+inline GrBackendObject GrGLTextureInfoToGrBackendObject(
+ const GrGLTextureInfo& info) {
+ return reinterpret_cast<GrBackendObject>(&info);
+}
+
+inline const GrGLTextureInfo* GrBackendObjectToGrGLTextureInfo(
+ GrBackendObject object) {
+ return reinterpret_cast<const GrGLTextureInfo*>(object);
+}
+
+} // namespace skia
+
+#endif // SKIA_EXT_TEXTURE_HANDLE_H_
« no previous file with comments | « skia/config/SkUserConfig.h ('k') | third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698