mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 19:41:49 +00:00
Bug 1426329 - Reduce includes of GLContext.h in headers. - r=lenzak
MozReview-Commit-ID: LPrK3ghNI5f
This commit is contained in:
parent
02a910737b
commit
96cde974a6
@ -18,32 +18,16 @@
|
||||
#include <bitset>
|
||||
#include <vector>
|
||||
|
||||
#ifdef XP_WIN
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN 1
|
||||
#endif
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
typedef HDC EGLNativeDisplayType;
|
||||
typedef HBITMAP EGLNativePixmapType;
|
||||
typedef HWND EGLNativeWindowType;
|
||||
#else
|
||||
typedef void* EGLNativeDisplayType;
|
||||
typedef void* EGLNativePixmapType;
|
||||
typedef void* EGLNativeWindowType;
|
||||
|
||||
#ifdef ANDROID
|
||||
// We only need to explicitly dlopen egltrace
|
||||
// on android as we can use LD_PRELOAD or other tricks
|
||||
// on other platforms. We look for it in /data/local
|
||||
// as that's writeable by all users
|
||||
//
|
||||
// This should really go in GLLibraryEGL.cpp but we currently reference
|
||||
// APITRACE_LIB in GLContextProviderEGL.cpp. Further refactoring
|
||||
// will come in subsequent patches on Bug 732865
|
||||
#define APITRACE_LIB "/data/local/tmp/egltrace.so"
|
||||
#endif
|
||||
#ifdef ANDROID
|
||||
// We only need to explicitly dlopen egltrace
|
||||
// on android as we can use LD_PRELOAD or other tricks
|
||||
// on other platforms. We look for it in /data/local
|
||||
// as that's writeable by all users
|
||||
//
|
||||
// This should really go in GLLibraryEGL.cpp but we currently reference
|
||||
// APITRACE_LIB in GLContextProviderEGL.cpp. Further refactoring
|
||||
// will come in subsequent patches on Bug 732865
|
||||
#define APITRACE_LIB "/data/local/tmp/egltrace.so"
|
||||
#endif
|
||||
|
||||
#if defined(MOZ_X11)
|
||||
|
@ -2,7 +2,7 @@
|
||||
* 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/. */
|
||||
|
||||
#if !defined(GLTYPES_H_)
|
||||
#ifndef GLTYPES_H_
|
||||
#define GLTYPES_H_
|
||||
|
||||
#include <stddef.h>
|
||||
@ -94,4 +94,21 @@ typedef uint64_t EGLTime;
|
||||
#define EGL_NO_SYNC ((EGLSync)0)
|
||||
#define EGL_NO_IMAGE ((EGLImage)0)
|
||||
|
||||
|
||||
#ifdef XP_WIN
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN 1
|
||||
#endif
|
||||
|
||||
#include <windef.h>
|
||||
|
||||
typedef HDC EGLNativeDisplayType;
|
||||
typedef HBITMAP EGLNativePixmapType;
|
||||
typedef HWND EGLNativeWindowType;
|
||||
#else
|
||||
typedef void* EGLNativeDisplayType;
|
||||
typedef void* EGLNativePixmapType;
|
||||
typedef void* EGLNativeWindowType;
|
||||
#endif
|
||||
|
||||
#endif // GLTYPES_H_
|
||||
|
@ -219,6 +219,8 @@ SharedSurface::SharedSurface(SharedSurfaceType type,
|
||||
, mIsProducerAcquired(false)
|
||||
{ }
|
||||
|
||||
SharedSurface::~SharedSurface() = default;
|
||||
|
||||
layers::TextureFlags
|
||||
SharedSurface::GetTextureFlags() const
|
||||
{
|
||||
|
@ -76,8 +76,7 @@ protected:
|
||||
bool canRecycle);
|
||||
|
||||
public:
|
||||
virtual ~SharedSurface() {
|
||||
}
|
||||
virtual ~SharedSurface();
|
||||
|
||||
// Specifies to the TextureClient any flags which
|
||||
// are required by the SharedSurface backend.
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
#include "mozilla/RefPtr.h"
|
||||
#include "mozilla/gfx/PVRLayerChild.h"
|
||||
#include "GLContext.h"
|
||||
#include "gfxVR.h"
|
||||
|
||||
class nsICanvasRenderingContextInternal;
|
||||
|
@ -6,9 +6,7 @@
|
||||
#ifndef mozilla_widget_AndroidCompositorWidget_h
|
||||
#define mozilla_widget_AndroidCompositorWidget_h
|
||||
|
||||
#include "GLContext.h"
|
||||
#include "GLLibraryEGL.h"
|
||||
#include "GLTypes.h"
|
||||
#include "GLDefs.h"
|
||||
#include "mozilla/widget/InProcessCompositorWidget.h"
|
||||
|
||||
struct ANativeWindow;
|
||||
|
Loading…
x
Reference in New Issue
Block a user