Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSVGLibartBitmapDefault.cpp File Reference
#include "nsCOMPtr.h"
#include "nsISVGLibartBitmap.h"
#include "nsIRenderingContext.h"
#include "nsIDeviceContext.h"
#include "nsPresContext.h"
#include "nsRect.h"
#include "nsIImage.h"
#include "nsIComponentManager.h"
#include "imgIContainer.h"
#include "gfxIImageFrame.h"
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"

Go to the source code of this file.


class  nsSVGLibartBitmapDefault
 A libart-bitmap implementation based on gfxIImageFrame that should work on all platforms but doesn't support obtaining RenderingContexts with Lock/UnlockRenderingContext and is generally a bit of a hack. More...


nsresult NS_NewSVGLibartBitmap (nsISVGLibartBitmap **result, nsIRenderingContext *ctx, nsPresContext *presContext, const nsRect &rect)

Function Documentation

nsresult NS_NewSVGLibartBitmap ( nsISVGLibartBitmap **  result,
nsIRenderingContext ctx,
nsPresContext presContext,
const nsRect rect 

Definition at line 139 of file nsSVGLibartBitmapDefault.cpp.

  nsSVGLibartBitmapDefault* bm = new nsSVGLibartBitmapDefault();
  if (!bm) return NS_ERROR_OUT_OF_MEMORY;


  nsresult rv = bm->Init(ctx, presContext, rect);

  if (NS_FAILED(rv)) {
    return rv;
  *result = bm;
  return rv;

Here is the call graph for this function: