Bug 1886451: Add missing ifdef Nightly guards. r=dminor
[gecko.git] / gfx / gl / AndroidSurfaceTexture.h
blobbf9a5ed6aef4304d44df99d1b7b15c721b17a15d
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/. */
7 #ifndef AndroidSurfaceTexture_h__
8 #define AndroidSurfaceTexture_h__
10 #include "mozilla/gfx/Matrix.h"
12 typedef uint64_t AndroidSurfaceTextureHandle;
14 #ifdef MOZ_WIDGET_ANDROID
16 # include "SurfaceTexture.h"
18 namespace mozilla {
19 namespace gl {
21 class AndroidSurfaceTexture {
22 public:
23 static void Init();
24 static void GetTransformMatrix(
25 java::sdk::SurfaceTexture::Param surfaceTexture,
26 mozilla::gfx::Matrix4x4* outMatrix);
29 } // namespace gl
30 } // namespace mozilla
32 #endif // MOZ_WIDGET_ANDROID
34 #endif // AndroidSurfaceTexture_h__