AndroidSurfaceTexture.h (878B)
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 // vim:set ts=2 sts=2 sw=2 et cin: 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef AndroidSurfaceTexture_h__ 8 #define AndroidSurfaceTexture_h__ 9 10 #include "mozilla/gfx/Matrix.h" 11 12 typedef uint64_t AndroidSurfaceTextureHandle; 13 14 #ifdef MOZ_WIDGET_ANDROID 15 16 # include "SurfaceTexture.h" 17 18 namespace mozilla { 19 namespace gl { 20 21 class AndroidSurfaceTexture { 22 public: 23 static void Init(); 24 static void GetTransformMatrix( 25 const java::sdk::SurfaceTexture::Ref& surfaceTexture, 26 mozilla::gfx::Matrix4x4* outMatrix); 27 }; 28 29 } // namespace gl 30 } // namespace mozilla 31 32 #endif // MOZ_WIDGET_ANDROID 33 34 #endif // AndroidSurfaceTexture_h__