gfx/gl/AndroidSurfaceTexture.h
author yulia <ystartsev@mozilla.com>
Thu, 18 Oct 2018 14:34:33 +0000
changeset 490315 a6b4461eadf0622f4d4f6ea1ee8389d1c655b336
parent 431675 b6aad6761527b5156a11979eb2a6ed7b844eb224
child 462760 b2dca24b1741e6089c7fc1080493e2e230b52cb3
permissions -rw-r--r--
Bug 1495387 - introduce async front instantiation; r=ochameau Depends on D8989 Differential Revision: https://phabricator.services.mozilla.com/D8990

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
// vim:set ts=2 sts=2 sw=2 et cin:
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef AndroidSurfaceTexture_h__
#define AndroidSurfaceTexture_h__
#ifdef MOZ_WIDGET_ANDROID

#include "mozilla/gfx/Matrix.h"
#include "SurfaceTexture.h"

typedef uint32_t AndroidSurfaceTextureHandle;

namespace mozilla {
namespace gl {

class AndroidSurfaceTexture {
public:
  static void GetTransformMatrix(java::sdk::SurfaceTexture::Param surfaceTexture,
                                 mozilla::gfx::Matrix4x4* outMatrix);

};

} // gl
} // mozilla

#endif // MOZ_WIDGET_ANDROID
#endif // AndroidSurfaceTexture_h__