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

Side by Side 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, 9 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW
« 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