mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1203992 - Distinguish between SingleTiledContentClient and MultiTiledContentClient in the layer tree dump. r=nical
This commit is contained in:
parent
abb872231b
commit
db97aebf53
@ -14,7 +14,7 @@ namespace layers {
|
||||
|
||||
SingleTiledContentClient::SingleTiledContentClient(ClientTiledPaintedLayer* aPaintedLayer,
|
||||
ClientLayerManager* aManager)
|
||||
: TiledContentClient(aManager)
|
||||
: TiledContentClient(aManager, "Single")
|
||||
{
|
||||
MOZ_COUNT_CTOR(SingleTiledContentClient);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user