зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1019888 - Log canvas background color when dumping display items. r=tn
This commit is contained in:
Родитель
06506e7aaa
Коммит
a4a3fd7711
|
@ -18,6 +18,7 @@
|
||||||
#include "nsCSSFrameConstructor.h"
|
#include "nsCSSFrameConstructor.h"
|
||||||
#include "nsFrameManager.h"
|
#include "nsFrameManager.h"
|
||||||
#include "gfxPlatform.h"
|
#include "gfxPlatform.h"
|
||||||
|
#include "nsPrintfCString.h"
|
||||||
// for touchcaret
|
// for touchcaret
|
||||||
#include "nsContentList.h"
|
#include "nsContentList.h"
|
||||||
#include "nsContentCreatorFunctions.h"
|
#include "nsContentCreatorFunctions.h"
|
||||||
|
@ -208,6 +209,16 @@ nsDisplayCanvasBackgroundColor::Paint(nsDisplayListBuilder* aBuilder,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MOZ_DUMP_PAINTING
|
||||||
|
void
|
||||||
|
nsDisplayCanvasBackgroundColor::WriteDebugInfo(nsACString& aTo)
|
||||||
|
{
|
||||||
|
aTo += nsPrintfCString(" (rgba %d,%d,%d,%d)",
|
||||||
|
NS_GET_R(mColor), NS_GET_G(mColor),
|
||||||
|
NS_GET_B(mColor), NS_GET_A(mColor));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void BlitSurface(gfxContext* aDest, const gfxRect& aRect, gfxASurface* aSource)
|
static void BlitSurface(gfxContext* aDest, const gfxRect& aRect, gfxASurface* aSource)
|
||||||
{
|
{
|
||||||
aDest->Translate(gfxPoint(aRect.x, aRect.y));
|
aDest->Translate(gfxPoint(aRect.x, aRect.y));
|
||||||
|
|
|
@ -195,6 +195,9 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_DISPLAY_DECL_NAME("CanvasBackgroundColor", TYPE_CANVAS_BACKGROUND_COLOR)
|
NS_DISPLAY_DECL_NAME("CanvasBackgroundColor", TYPE_CANVAS_BACKGROUND_COLOR)
|
||||||
|
#ifdef MOZ_DUMP_PAINTING
|
||||||
|
virtual void WriteDebugInfo(nsACString& aTo) MOZ_OVERRIDE;
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
nscolor mColor;
|
nscolor mColor;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче