michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "mozilla/plugins/PluginSurfaceParent.h" michael@0: #include "mozilla/gfx/SharedDIBSurface.h" michael@0: michael@0: using mozilla::gfx::SharedDIBSurface; michael@0: michael@0: namespace mozilla { michael@0: namespace plugins { michael@0: michael@0: PluginSurfaceParent::PluginSurfaceParent(const WindowsSharedMemoryHandle& handle, michael@0: const gfxIntSize& size, michael@0: bool transparent) michael@0: { michael@0: SharedDIBSurface* dibsurf = new SharedDIBSurface(); michael@0: if (dibsurf->Attach(handle, size.width, size.height, transparent)) michael@0: mSurface = dibsurf; michael@0: } michael@0: michael@0: PluginSurfaceParent::~PluginSurfaceParent() michael@0: { michael@0: } michael@0: michael@0: } michael@0: }