32 lines
737 B
C++
32 lines
737 B
C++
#include <mediatek/LayerDebug.h>
|
|
#include <mediatek/GuiDebugModuleLoader.h>
|
|
|
|
namespace android {
|
|
|
|
LayerDebug::LayerDebug() :
|
|
mDump(NULL) {}
|
|
|
|
LayerDebug::~LayerDebug() {
|
|
if (mDump) {
|
|
delete mDump;
|
|
}
|
|
}
|
|
|
|
void LayerDebug::onDumpLayer(const std::vector<gui::LayerDebugInfo>& value) {
|
|
if (!mDump) {
|
|
mDump = GuiDebugModuleLoader::getInstance().CreateLayerInfoDumpInstance();
|
|
if (mDump) {
|
|
ALOGI("CreateLayerInfoDumpInstance success");
|
|
} else {
|
|
ALOGE("CreateLayerInfoDumpInstance fail");
|
|
}
|
|
}
|
|
|
|
if (mDump) {
|
|
mDump->onDumpLayerInfo(value);
|
|
} else {
|
|
ALOGE("DumpLayerInfo fail");
|
|
}
|
|
}
|
|
|
|
}; // namespace android
|