mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 05:14:24 +00:00
Bug 387132 - speed up reftest running. r=vlad, sr=bsmedberg, a=vlad
This commit is contained in:
parent
1158e69453
commit
b7e4d4f709
@ -44,14 +44,10 @@ include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = reftest
|
||||
|
||||
ifdef DISABLED_FOR_NOW
|
||||
|
||||
LIBRARY_NAME = reftest
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsReftestModule
|
||||
|
||||
MOZILLA_INTERNAL_API = 1
|
||||
|
||||
REQUIRES = \
|
||||
xpcom \
|
||||
string \
|
||||
@ -83,12 +79,19 @@ REQUIRES = \
|
||||
zlib \
|
||||
$(NULL)
|
||||
|
||||
ifndef MOZ_ENABLE_LIBXUL
|
||||
EXTRA_DSO_LIBS = thebes
|
||||
PLEASE_LINK_KTHX = $(XPCOM_GLUE_LDOPTS)
|
||||
else
|
||||
PLEASE_LINK_KTHX = $(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX)
|
||||
endif
|
||||
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(LIBS_DIR) \
|
||||
$(EXTRA_DSO_LIBS) \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(PLEASE_LINK_KTHX) \
|
||||
$(ZLIB_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
@ -96,8 +99,6 @@ XPIDLSRCS = nsIReftestHelper.idl
|
||||
|
||||
CPPSRCS = nsReftestHelper.cpp
|
||||
|
||||
endif
|
||||
|
||||
EXTRA_COMPONENTS= \
|
||||
reftest-cmdline.js \
|
||||
$(NULL)
|
||||
|
@ -94,7 +94,8 @@ CanvasToImageSurface(nsIDOMHTMLCanvasElement *canvas)
|
||||
t->SetOperator(gfxContext::OPERATOR_CLEAR);
|
||||
t->Paint();
|
||||
|
||||
rv = ctx->RenderToSurface(img->CairoSurface());
|
||||
t->SetOperator(gfxContext::OPERATOR_OVER);
|
||||
rv = ctx->Render(t);
|
||||
if (NS_FAILED(rv))
|
||||
return nsnull;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user