Implement the direct bitmap drawing model for plugins. (bug 1217665 part 6, r=mattwoodrow)

This commit is contained in:
David Anderson
2015-12-02 11:31:17 -08:00
parent 5727af88b1
commit aad66b2774
10 changed files with 357 additions and 13 deletions

View File

@@ -40,6 +40,7 @@
#include "GeckoProfiler.h"
#include "nsPluginTags.h"
#include "nsUnicharUtils.h"
#include "mozilla/layers/TextureClientRecycleAllocator.h"
#ifdef XP_WIN
#include "mozilla/plugins/PluginSurfaceParent.h"
@@ -3024,6 +3025,15 @@ PluginModuleParent::RecvReturnSitesWithData(nsTArray<nsCString>&& aSites,
return true;
}
layers::TextureClientRecycleAllocator*
PluginModuleParent::EnsureTextureAllocator()
{
if (!mTextureAllocator) {
mTextureAllocator = new TextureClientRecycleAllocator(ImageBridgeChild::GetSingleton());
}
return mTextureAllocator;
}
#ifdef MOZ_CRASHREPORTER_INJECTOR
// We only add the crash reporter to subprocess which have the filename