Implement the direct bitmap drawing model for plugins. (bug 1217665 part 6, r=mattwoodrow)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user