Bug 1203992 - Distinguish between SingleTiledContentClient and MultiTiledContentClient in the layer tree dump. r=nical

This commit is contained in:
Kartikaya Gupta 2015-09-14 11:02:11 -04:00
parent abb872231b
commit db97aebf53
3 changed files with 9 additions and 4 deletions

View File

@ -14,7 +14,7 @@ namespace layers {
SingleTiledContentClient::SingleTiledContentClient(ClientTiledPaintedLayer* aPaintedLayer,
ClientLayerManager* aManager)
: TiledContentClient(aManager)
: TiledContentClient(aManager, "Single")
{
MOZ_COUNT_CTOR(SingleTiledContentClient);

View File

@ -89,7 +89,7 @@ namespace layers {
MultiTiledContentClient::MultiTiledContentClient(ClientTiledPaintedLayer* aPaintedLayer,
ClientLayerManager* aManager)
: TiledContentClient(aManager)
: TiledContentClient(aManager, "Multi")
{
MOZ_COUNT_CTOR(MultiTiledContentClient);
@ -1669,7 +1669,7 @@ void
TiledContentClient::PrintInfo(std::stringstream& aStream, const char* aPrefix)
{
aStream << aPrefix;
aStream << nsPrintfCString("TiledContentClient (0x%p)", this).get();
aStream << nsPrintfCString("%sTiledContentClient (0x%p)", mName, this).get();
if (profiler_feature_active("displaylistdump")) {
nsAutoCString pfx(aPrefix);

View File

@ -591,8 +591,10 @@ private:
class TiledContentClient : public CompositableClient
{
public:
TiledContentClient(ClientLayerManager* aManager)
TiledContentClient(ClientLayerManager* aManager,
const char* aName = "")
: CompositableClient(aManager->AsShadowForwarder())
, mName(aName)
{}
protected:
@ -620,6 +622,9 @@ public:
LOW_PRECISION_TILED_BUFFER
};
virtual void UpdatedBuffer(TiledBufferType aType) = 0;
private:
const char* mName;
};
/**