Skip to content

Commit

Permalink
Backed out changeset c75481a07302 (bug 851611)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Morley committed Mar 18, 2013
1 parent cb0cfb4 commit 650d816
Show file tree
Hide file tree
Showing 65 changed files with 130 additions and 140 deletions.
4 changes: 2 additions & 2 deletions content/base/src/nsFrameLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ nsFrameLoader::ReallyStartLoadingInternal()
{
NS_ENSURE_STATE(mURIToLoad && mOwnerContent && mOwnerContent->IsInDoc());

PROFILER_LABEL("nsFrameLoader", "ReallyStartLoading");
SAMPLE_LABEL("nsFrameLoader", "ReallyStartLoading");

nsresult rv = MaybeCreateDocShell();
if (NS_FAILED(rv)) {
Expand Down Expand Up @@ -2024,7 +2024,7 @@ nsFrameLoader::TryRemoteBrowser()
return false;
}

PROFILER_LABEL("nsFrameLoader", "CreateRemoteBrowser");
SAMPLE_LABEL("nsFrameLoader", "CreateRemoteBrowser");

MutableTabContext context;
nsCOMPtr<mozIApplication> ownApp = GetOwnApp();
Expand Down
2 changes: 1 addition & 1 deletion content/base/src/nsObjectLoadingContent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ NS_IMETHODIMP
nsObjectLoadingContent::OnStartRequest(nsIRequest *aRequest,
nsISupports *aContext)
{
PROFILER_LABEL("nsObjectLoadingContent", "OnStartRequest");
SAMPLE_LABEL("nsObjectLoadingContent", "OnStartRequest");

LOG(("OBJLC [%p]: Channel OnStartRequest", this));

Expand Down
4 changes: 2 additions & 2 deletions content/base/src/nsXMLHttpRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1855,7 +1855,7 @@ nsXMLHttpRequest::OnDataAvailable(nsIRequest *request,
NS_IMETHODIMP
nsXMLHttpRequest::OnStartRequest(nsIRequest *request, nsISupports *ctxt)
{
PROFILER_LABEL("nsXMLHttpRequest", "OnStartRequest");
SAMPLE_LABEL("nsXMLHttpRequest", "OnStartRequest");
nsresult rv = NS_OK;
if (!mFirstStartRequestSeen && mRequestObserver) {
mFirstStartRequestSeen = true;
Expand Down Expand Up @@ -2041,7 +2041,7 @@ nsXMLHttpRequest::OnStartRequest(nsIRequest *request, nsISupports *ctxt)
NS_IMETHODIMP
nsXMLHttpRequest::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult status)
{
PROFILER_LABEL("content", "nsXMLHttpRequest::OnStopRequest");
SAMPLE_LABEL("content", "nsXMLHttpRequest::OnStopRequest");
if (request != mChannel) {
// Can this still happen?
return NS_OK;
Expand Down
2 changes: 1 addition & 1 deletion content/events/src/nsEventDispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ nsEventDispatcher::Dispatch(nsISupports* aTarget,
nsDispatchingCallback* aCallback,
nsCOMArray<nsIDOMEventTarget>* aTargets)
{
PROFILER_LABEL("nsEventDispatcher", "Dispatch");
SAMPLE_LABEL("nsEventDispatcher", "Dispatch");
NS_ASSERTION(aEvent, "Trying to dispatch without nsEvent!");
NS_ENSURE_TRUE(!aEvent->mFlags.mIsBeingDispatched,
NS_ERROR_ILLEGAL_VALUE);
Expand Down
2 changes: 1 addition & 1 deletion content/events/src/nsEventStateManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3932,7 +3932,7 @@ nsEventStateManager::DispatchMouseEvent(nsGUIEvent* aEvent, uint32_t aMessage,
return mPresContext->GetPrimaryFrameFor(content);
}

PROFILER_LABEL("Input", "DispatchMouseEvent");
SAMPLE_LABEL("Input", "DispatchMouseEvent");
nsEventStatus status = nsEventStatus_eIgnore;
nsMouseEvent event(aEvent->mFlags.mIsTrusted, aMessage, aEvent->widget,
nsMouseEvent::eReal);
Expand Down
2 changes: 1 addition & 1 deletion content/html/content/src/nsGenericHTMLFrameElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ nsGenericHTMLFrameElement::BindToTree(nsIDocument* aDocument,
NS_ASSERTION(!nsContentUtils::IsSafeToRunScript(),
"Missing a script blocker!");

PROFILER_LABEL("nsGenericHTMLFrameElement", "BindToTree");
SAMPLE_LABEL("nsGenericHTMLFrameElement", "BindToTree");

// We're in a document now. Kick off the frame load.
LoadSrc();
Expand Down
2 changes: 1 addition & 1 deletion content/html/document/src/PluginDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class PluginStreamListener : public MediaDocumentStreamListener
NS_IMETHODIMP
PluginStreamListener::OnStartRequest(nsIRequest* request, nsISupports *ctxt)
{
PROFILER_LABEL("PluginStreamListener", "OnStartRequest");
SAMPLE_LABEL("PluginStreamListener", "OnStartRequest");

nsCOMPtr<nsIContent> embed = mPluginDoc->GetPluginContent();
nsCOMPtr<nsIObjectLoadingContent> objlc = do_QueryInterface(embed);
Expand Down
4 changes: 2 additions & 2 deletions dom/base/nsDOMWindowUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ nsDOMWindowUtils::SendMouseEventToWindow(const nsAString& aType,
float aPressure,
unsigned short aInputSourceArg)
{
PROFILER_LABEL("nsDOMWindowUtils", "SendMouseEventToWindow");
SAMPLE_LABEL("nsDOMWindowUtils", "SendMouseEventToWindow");
return SendMouseEventCommon(aType, aX, aY, aButton, aClickCount, aModifiers,
aIgnoreRootScrollFrame, aPressure,
aInputSourceArg, true, nullptr);
Expand Down Expand Up @@ -1139,7 +1139,7 @@ NS_IMETHODIMP
nsDOMWindowUtils::GarbageCollect(nsICycleCollectorListener *aListener,
int32_t aExtraForgetSkippableCalls)
{
PROFILER_LABEL("GC", "GarbageCollect");
SAMPLE_LABEL("GC", "GarbageCollect");
// Always permit this in debug builds.
#ifndef DEBUG
if (!nsContentUtils::IsCallerChrome()) {
Expand Down
12 changes: 6 additions & 6 deletions dom/base/nsJSEnvironment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ nsJSContext::EvaluateString(const nsAString& aScript,
bool aCoerceToString,
JS::Value* aRetValue)
{
PROFILER_LABEL("JS", "EvaluateString");
SAMPLE_LABEL("JS", "EvaluateString");
MOZ_ASSERT_IF(aOptions.versionSet, aOptions.version != JSVERSION_UNKNOWN);
MOZ_ASSERT_IF(aCoerceToString, aRetValue);
NS_ENSURE_TRUE(mIsInitialized, NS_ERROR_NOT_INITIALIZED);
Expand Down Expand Up @@ -1341,7 +1341,7 @@ nsJSContext::CompileScript(const PRUnichar* aText,
nsScriptObjectHolder<JSScript>& aScriptObject,
bool aSaveSource /* = false */)
{
PROFILER_LABEL_PRINTF("JS", "Compile Script", "%s", aURL ? aURL : "");
SAMPLE_LABEL_PRINTF("JS", "Compile Script", "%s", aURL ? aURL : "");
NS_ENSURE_TRUE(mIsInitialized, NS_ERROR_NOT_INITIALIZED);

NS_ENSURE_ARG_POINTER(aPrincipal);
Expand Down Expand Up @@ -1502,7 +1502,7 @@ nsJSContext::CallEventHandler(nsISupports* aTarget, JSObject* aScope,
return NS_OK;
}

PROFILER_LABEL("JS", "CallEventHandler");
SAMPLE_LABEL("JS", "CallEventHandler");

nsAutoMicroTask mt;
xpc_UnmarkGrayObject(aScope);
Expand Down Expand Up @@ -2559,7 +2559,7 @@ nsJSContext::GarbageCollectNow(JS::gcreason::Reason aReason,
IsShrinking aShrinking,
int64_t aSliceMillis)
{
PROFILER_LABEL("GC", "GarbageCollectNow");
SAMPLE_LABEL("GC", "GarbageCollectNow");

MOZ_ASSERT_IF(aSliceMillis, aIncremental == IncrementalGC);

Expand Down Expand Up @@ -2626,7 +2626,7 @@ nsJSContext::GarbageCollectNow(JS::gcreason::Reason aReason,
void
nsJSContext::ShrinkGCBuffersNow()
{
PROFILER_LABEL("GC", "ShrinkGCBuffersNow");
SAMPLE_LABEL("GC", "ShrinkGCBuffersNow");

KillShrinkGCBuffersTimer();

Expand Down Expand Up @@ -2740,7 +2740,7 @@ nsJSContext::CycleCollectNow(nsICycleCollectorListener *aListener,
return;
}

PROFILER_LABEL("CC", "CycleCollectNow");
SAMPLE_LABEL("CC", "CycleCollectNow");

PRTime start = PR_Now();

Expand Down
2 changes: 1 addition & 1 deletion dom/plugins/base/nsPluginStreamListenerPeer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ nsPluginStreamListenerPeer::OnStartRequest(nsIRequest *request,
nsISupports* aContext)
{
nsresult rv = NS_OK;
PROFILER_LABEL("nsPluginStreamListenerPeer", "OnStartRequest");
SAMPLE_LABEL("nsPluginStreamListenerPeer", "OnStartRequest");

if (mRequests.IndexOfObject(GetBaseRequest(request)) == -1) {
NS_ASSERTION(mRequests.Count() == 0,
Expand Down
2 changes: 1 addition & 1 deletion dom/plugins/ipc/PluginModuleParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ PluginModuleParent::NPP_NewStream(NPP instance, NPMIMEType type,
NPStream* stream, NPBool seekable,
uint16_t* stype)
{
PROFILER_LABEL("PluginModuleParent", "NPP_NewStream");
SAMPLE_LABEL("PluginModuleParent", "NPP_NewStream");
PluginInstanceParent* i = InstCast(instance);
if (!i)
return NPERR_GENERIC_ERROR;
Expand Down
2 changes: 1 addition & 1 deletion dom/src/storage/StorageChild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ StorageChild::GetKey(bool aCallerSecure, uint32_t aIndex, nsAString& aKey)
nsIDOMStorageItem*
StorageChild::GetValue(bool aCallerSecure, const nsAString& aKey, nsresult* rv)
{
PROFILER_LABEL("StorageChild", "GetValue");
SAMPLE_LABEL("StorageChild", "GetValue");
nsresult rv2 = *rv = NS_OK;
StorageItem storageItem;
SendGetValue(aCallerSecure, mSessionOnly, nsString(aKey), &storageItem, &rv2);
Expand Down
2 changes: 1 addition & 1 deletion dom/src/storage/nsDOMStoragePersistentDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ nsDOMStoragePersistentDB::GetKeyValue(DOMStorageImpl* aStorage,
bool* aSecure)
{
Telemetry::AutoTimer<Telemetry::LOCALDOMSTORAGE_GETVALUE_MS> timer;
PROFILER_LABEL("nsDOMStoragePersistentDB", "GetKeyValue");
SAMPLE_LABEL("nsDOMStoragePersistentDB", "GetKeyValue");

nsresult rv = EnsureScopeLoaded(aStorage);
NS_ENSURE_SUCCESS(rv, rv);
Expand Down
2 changes: 1 addition & 1 deletion gfx/gl/GLContextProviderCGL.mm
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ bool SupportsRobustness()

bool SwapBuffers()
{
PROFILER_LABEL("GLContext", "SwapBuffers");
SAMPLE_LABEL("GLContext", "SwapBuffers");
[mContext flushBuffer];
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion gfx/layers/ThebesLayerBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ ThebesLayerBuffer::DrawBufferWithRotation(gfxContext* aTarget, float aOpacity,
gfxASurface* aMask,
const gfxMatrix* aMaskTransform)
{
PROFILER_LABEL("ThebesLayerBuffer", "DrawBufferWithRotation");
SAMPLE_LABEL("ThebesLayerBuffer", "DrawBufferWithRotation");
// Draw four quadrants. We could use REPEAT_, but it's probably better
// not to, to be performance-safe.
DrawBufferQuadrant(aTarget, LEFT, TOP, aOpacity, aMask, aMaskTransform);
Expand Down
2 changes: 1 addition & 1 deletion gfx/layers/basic/BasicLayerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ BasicLayerManager::EndTransactionInternal(DrawThebesLayerCallback aCallback,
void* aCallbackData,
EndTransactionFlags aFlags)
{
PROFILER_LABEL("BasicLayerManager", "EndTranscationInternal");
SAMPLE_LABEL("BasicLayerManager", "EndTranscationInternal");
#ifdef MOZ_LAYERS_HAVE_LOG
MOZ_LAYERS_LOG((" ----- (beginning paint)"));
Log();
Expand Down
2 changes: 1 addition & 1 deletion gfx/layers/basic/BasicThebesLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ BasicThebesLayer::PaintThebes(gfxContext* aContext,
void* aCallbackData,
ReadbackProcessor* aReadback)
{
PROFILER_LABEL("BasicThebesLayer", "PaintThebes");
SAMPLE_LABEL("BasicThebesLayer", "PaintThebes");
NS_ASSERTION(BasicManager()->InDrawing(),
"Can only draw in drawing phase");
nsRefPtr<gfxASurface> targetSurface = aContext->CurrentSurface();
Expand Down
10 changes: 5 additions & 5 deletions gfx/layers/basic/BasicTiledThebesLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ BasicTiledLayerBuffer::PaintThebes(BasicTiledThebesLayer* aLayer,
if (useSinglePaintBuffer) {
const nsIntRect bounds = aPaintRegion.GetBounds();
{
PROFILER_LABEL("BasicTiledLayerBuffer", "PaintThebesSingleBufferAlloc");
SAMPLE_LABEL("BasicTiledLayerBuffer", "PaintThebesSingleBufferAlloc");
mSinglePaintBuffer = new gfxImageSurface(
gfxIntSize(ceilf(bounds.width * mResolution),
ceilf(bounds.height * mResolution)),
Expand All @@ -125,7 +125,7 @@ BasicTiledLayerBuffer::PaintThebes(BasicTiledThebesLayer* aLayer,
}
start = PR_IntervalNow();
#endif
PROFILER_LABEL("BasicTiledLayerBuffer", "PaintThebesSingleBufferDraw");
SAMPLE_LABEL("BasicTiledLayerBuffer", "PaintThebesSingleBufferDraw");

mCallback(mThebesLayer, ctxt, aPaintRegion, nsIntRegion(), mCallbackData);
}
Expand All @@ -145,7 +145,7 @@ BasicTiledLayerBuffer::PaintThebes(BasicTiledThebesLayer* aLayer,
start = PR_IntervalNow();
#endif

PROFILER_LABEL("BasicTiledLayerBuffer", "PaintThebesUpdate");
SAMPLE_LABEL("BasicTiledLayerBuffer", "PaintThebesUpdate");
Update(aNewValidRegion, aPaintRegion);

#ifdef GFX_TILEDLAYER_PREF_WARNINGS
Expand Down Expand Up @@ -221,7 +221,7 @@ BasicTiledLayerBuffer::ValidateTile(BasicTiledLayerTile aTile,
const nsIntRegion& aDirtyRegion)
{

PROFILER_LABEL("BasicTiledLayerBuffer", "ValidateTile");
SAMPLE_LABEL("BasicTiledLayerBuffer", "ValidateTile");

#ifdef GFX_TILEDLAYER_PREF_WARNINGS
if (aDirtyRegion.IsComplex()) {
Expand Down Expand Up @@ -311,7 +311,7 @@ BasicTiledThebesLayer::ComputeProgressiveUpdateRegion(BasicTiledLayerBuffer& aTi
if (BasicManager()->ProgressiveUpdateCallback(!staleRegion.Contains(aInvalidRegion),
viewport,
scaleX, scaleY, !drawingLowPrecision)) {
PROFILER_MARKER("Abort painting");
SAMPLE_MARKER("Abort painting");
aRegionToPaint.SetEmpty();
return aIsRepeated;
}
Expand Down
10 changes: 5 additions & 5 deletions gfx/layers/ipc/ShadowLayerUtilsGralloc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ GrallocBufferActor::Create(const gfxIntSize& aSize,
const gfxContentType& aContent,
MaybeMagicGrallocBufferHandle* aOutHandle)
{
PROFILER_LABEL("GrallocBufferActor", "Create");
SAMPLE_LABEL("GrallocBufferActor", "Create");
GrallocBufferActor* actor = new GrallocBufferActor();
*aOutHandle = null_t();
android::PixelFormat format = PixelFormatForContentType(aContent);
Expand All @@ -224,7 +224,7 @@ ShadowLayerManager::OpenDescriptorForDirectTexturing(GLContext* aGL,
const SurfaceDescriptor& aDescriptor,
GLenum aWrapMode)
{
PROFILER_LABEL("ShadowLayerManager", "OpenDescriptorForDirectTexturing");
SAMPLE_LABEL("ShadowLayerManager", "OpenDescriptorForDirectTexturing");
if (SurfaceDescriptor::TSurfaceDescriptorGralloc != aDescriptor.type()) {
return nullptr;
}
Expand Down Expand Up @@ -301,7 +301,7 @@ ShadowLayerForwarder::PlatformAllocBuffer(const gfxIntSize& aSize,
if (aSize.width < 64) {
return false;
}
PROFILER_LABEL("ShadowLayerForwarder", "PlatformAllocBuffer");
SAMPLE_LABEL("ShadowLayerForwarder", "PlatformAllocBuffer");
// Gralloc buffers are efficiently mappable as gfxImageSurface, so
// no need to check |aCaps & MAP_AS_IMAGE_SURFACE|.
MaybeMagicGrallocBufferHandle handle;
Expand Down Expand Up @@ -339,7 +339,7 @@ GrallocBufferActor::GetFrom(const SurfaceDescriptorGralloc& aDescriptor)
ShadowLayerForwarder::PlatformOpenDescriptor(OpenMode aMode,
const SurfaceDescriptor& aSurface)
{
PROFILER_LABEL("ShadowLayerForwarder", "PlatformOpenDescriptor");
SAMPLE_LABEL("ShadowLayerForwarder", "PlatformOpenDescriptor");
if (SurfaceDescriptor::TSurfaceDescriptorGralloc != aSurface.type()) {
return nullptr;
}
Expand Down Expand Up @@ -414,7 +414,7 @@ ShadowLayerForwarder::PlatformDestroySharedSurface(SurfaceDescriptor* aSurface)
/*static*/ bool
ShadowLayerForwarder::PlatformCloseDescriptor(const SurfaceDescriptor& aDescriptor)
{
PROFILER_LABEL("ShadowLayerForwarder", "PlatformCloseDescriptor");
SAMPLE_LABEL("ShadowLayerForwarder", "PlatformCloseDescriptor");
if (SurfaceDescriptor::TSurfaceDescriptorGralloc != aDescriptor.type()) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion gfx/layers/ipc/ShadowLayers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ ShadowLayerForwarder::PaintedCanvas(ShadowableLayer* aCanvas,
bool
ShadowLayerForwarder::EndTransaction(InfallibleTArray<EditReply>* aReplies)
{
PROFILER_LABEL("ShadowLayerForwarder", "EndTranscation");
SAMPLE_LABEL("ShadowLayerForwarder", "EndTranscation");
RenderTraceScope rendertrace("Foward Transaction", "000091");
NS_ABORT_IF_FALSE(HasShadowManager(), "no manager to forward to");
NS_ABORT_IF_FALSE(!mTxn->Finished(), "forgot BeginTransaction?");
Expand Down
4 changes: 2 additions & 2 deletions gfx/layers/opengl/LayerManagerOGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ static uint16_t sFrameCount = 0;
void
FPSState::DrawFrameCounter(GLContext* context)
{
profiler_set_frame_number(sFrameCount);
SAMPLER_FRAME_NUMBER(sFrameCount);

context->fEnable(LOCAL_GL_SCISSOR_TEST);

Expand Down Expand Up @@ -1038,7 +1038,7 @@ LayerManagerOGL::NotifyShadowTreeTransaction()
void
LayerManagerOGL::Render()
{
PROFILER_LABEL("LayerManagerOGL", "Render");
SAMPLE_LABEL("LayerManagerOGL", "Render");
if (mDestroyed) {
NS_WARNING("Call on destroyed layer manager");
return;
Expand Down
6 changes: 3 additions & 3 deletions gfx/thebes/gfxContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ gfxContext::Stroke()
void
gfxContext::Fill()
{
PROFILER_LABEL("gfxContext", "Fill");
SAMPLE_LABEL("gfxContext", "Fill");
if (mCairo) {
cairo_fill_preserve(mCairo);
} else {
Expand Down Expand Up @@ -1413,7 +1413,7 @@ gfxContext::Mask(gfxPattern *pattern)
void
gfxContext::Mask(gfxASurface *surface, const gfxPoint& offset)
{
PROFILER_LABEL("gfxContext", "Mask");
SAMPLE_LABEL("gfxContext", "Mask");
if (mCairo) {
cairo_mask_surface(mCairo, surface->CairoSurface(), offset.x, offset.y);
} else {
Expand All @@ -1432,7 +1432,7 @@ gfxContext::Mask(gfxASurface *surface, const gfxPoint& offset)
void
gfxContext::Paint(gfxFloat alpha)
{
PROFILER_LABEL("gfxContext", "Paint");
SAMPLE_LABEL("gfxContext", "Paint");
if (mCairo) {
cairo_paint_with_alpha(mCairo, alpha);
} else {
Expand Down
2 changes: 1 addition & 1 deletion gfx/thebes/gfxFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,7 @@ struct GlyphBuffer {
FlushStroke(aCR, aObjectPaint, aGlobalMatrix);
}
if (aDrawMode & gfxFont::GLYPH_FILL) {
PROFILER_LABEL("GlyphBuffer", "cairo_show_glyphs");
SAMPLE_LABEL("GlyphBuffer", "cairo_show_glyphs");
nsRefPtr<gfxPattern> pattern;
if (aObjectPaint &&
!!(pattern = aObjectPaint->GetFillPattern(aGlobalMatrix))) {
Expand Down
4 changes: 2 additions & 2 deletions gfx/thebes/gfxUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ CreateSamplingRestrictedDrawable(gfxDrawable* aDrawable,
const gfxRect& aSubimage,
const gfxImageSurface::gfxImageFormat aFormat)
{
PROFILER_LABEL("gfxUtils", "CreateSamplingRestricedDrawable");
SAMPLE_LABEL("gfxUtils", "CreateSamplingRestricedDrawable");
gfxRect userSpaceClipExtents = aContext->GetClipExtents();
// This isn't optimal --- if aContext has a rotation then GetClipExtents
// will have to do a bounding-box computation, and TransformBounds might
Expand Down Expand Up @@ -418,7 +418,7 @@ gfxUtils::DrawPixelSnapped(gfxContext* aContext,
gfxPattern::GraphicsFilter aFilter,
uint32_t aImageFlags)
{
PROFILER_LABEL("gfxUtils", "DrawPixelSnapped");
SAMPLE_LABEL("gfxUtils", "DrawPixelSnapped");
bool doTile = !aImageRect.Contains(aSourceRect) &&
!(aImageFlags & imgIContainer::FLAG_CLAMP);

Expand Down
Loading

0 comments on commit 650d816

Please sign in to comment.