b=500883; put canvas3d into core (disabled by default, configure flag to enable); r=me,npotb

This commit is contained in:
Vladimir Vukicevic
2009-06-27 16:44:35 -07:00
parent 5762d08a73
commit a8539f9f07
29 changed files with 10932 additions and 21 deletions

View File

@@ -210,6 +210,9 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsHTMLEditor)
#ifdef MOZ_ENABLE_CANVAS
#include "nsIDOMCanvasRenderingContext2D.h"
#ifdef MOZ_ENABLE_CANVAS3D
#include "nsICanvasRenderingContextGLWeb20.h"
#endif
#endif
class nsIDocumentLoaderFactory;
@@ -404,6 +407,9 @@ nsresult NS_NewTreeBoxObject(nsIBoxObject** aResult);
#ifdef MOZ_ENABLE_CANVAS
nsresult NS_NewCanvasRenderingContext2D(nsIDOMCanvasRenderingContext2D** aResult);
#ifdef MOZ_ENABLE_CANVAS3D
nsresult NS_NewCanvasRenderingContextGLWeb20(nsICanvasRenderingContextGLWeb20** aResult);
#endif
#endif
nsresult NS_CreateFrameTraversal(nsIFrameTraversal** aResult);
@@ -540,6 +546,9 @@ MAKE_CTOR(CreateFocusManager, nsIFocusManager, NS_NewFocusManag
#ifdef MOZ_ENABLE_CANVAS
MAKE_CTOR(CreateCanvasRenderingContext2D, nsIDOMCanvasRenderingContext2D, NS_NewCanvasRenderingContext2D)
#ifdef MOZ_ENABLE_CANVAS3D
MAKE_CTOR(CreateCanvasRenderingContextGLWeb20, nsICanvasRenderingContextGLWeb20, NS_NewCanvasRenderingContextGLWeb20)
#endif
#endif
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsStyleSheetService, Init)
@@ -1080,6 +1089,12 @@ static const nsModuleComponentInfo gComponents[] = {
NS_CANVASRENDERINGCONTEXT2D_CID,
"@mozilla.org/content/canvas-rendering-context;1?id=2d",
CreateCanvasRenderingContext2D },
#ifdef MOZ_ENABLE_CANVAS3D
{ "Canvas OpenGL Web 2.0 Rendering Context",
NS_CANVASRENDERINGCONTEXTGLWEB20_CID,
"@mozilla.org/content/canvas-rendering-context;1?id=moz-glweb20",
CreateCanvasRenderingContextGLWeb20 },
#endif
#endif
{ "XML document encoder",