Bug 1294479 - Remove presentation methods from nsWindow/AndroidBridge; r=snorp

Remove the presentation methods from nsWindow/AndroidBridge now that
they are not used. This also eliminates gGeckoViewWindow from nsWindow.
NS_PRESENTATION_WINDOW and NS_PRESENTATION_SURFACE constants are added
for GetNativeData/SetNativeData to provide replacements that support
multiple GeckoViews/nsWindows.
This commit is contained in:
Jim Chen
2016-08-19 17:17:24 -04:00
parent 1a98b320ee
commit 785255eac9
9 changed files with 39 additions and 127 deletions

View File

@@ -51,7 +51,6 @@ using namespace mozilla::dom;
#include "android_npapi.h"
#include "mozilla/Mutex.h"
#include "mozilla/CondVar.h"
#include "AndroidBridge.h"
#include "mozilla/dom/ScreenOrientation.h"
#include "mozilla/Hal.h"
#include "GLContextProvider.h"
@@ -901,7 +900,7 @@ already_AddRefed<AndroidSurfaceTexture> nsNPAPIPluginInstance::CreateSurfaceText
void nsNPAPIPluginInstance::OnSurfaceTextureFrameAvailable()
{
if (mRunning == RUNNING && mOwner)
AndroidBridge::Bridge()->InvalidateAndScheduleComposite();
mOwner->Recomposite();
}
void* nsNPAPIPluginInstance::AcquireContentWindow()