Signed-off-by: balingbaling <libingbing12@huawei.com>
Change-Id: I1bab543353607b14c5b2f6c981ac9554a0b1808c
This commit is contained in:
balingbaling 2024-04-20 17:04:52 +08:00
parent 18cd5a6886
commit b20bf3494c
5 changed files with 7 additions and 9 deletions

View File

@ -1757,14 +1757,14 @@ void RSMainThread::CheckSystemSceneStatus()
std::chrono::duration_cast<std::chrono::nanoseconds>(
std::chrono::steady_clock::now().time_since_epoch()).count());
while (!systemAnimatedScenesList_.empty()) {
if (curTime - systemAnimatedScenesList_.front().second > MAX_SYSTEM_SCENE_STATUS_TIME) {
if (curTime - static_cast<uint64_t>(systemAnimatedScenesList_.front().second) > MAX_SYSTEM_SCENE_STATUS_TIME) {
systemAnimatedScenesList_.pop_front();
} else {
break;
}
}
while (!threeFingerScenesList_.empty()) {
if (curTime - threeFingerScenesList_.front().second > MAX_SYSTEM_SCENE_STATUS_TIME) {
if (curTime - static_cast<uint64_t>(threeFingerScenesList_.front().second) > MAX_SYSTEM_SCENE_STATUS_TIME) {
threeFingerScenesList_.pop_front();
} else {
break;

View File

@ -4004,9 +4004,9 @@ void RSUniRenderVisitor::ProcessDisplayRenderNode(RSDisplayRenderNode& node)
}
RS_LOGD("RSUniRenderVisitor::ProcessDisplayRenderNode end");
#ifdef RS_ENABLE_VK
if (RSSystemProperties::GetGpuApiType() == GpuApiType::VULKAN) {
renderEngine_->GetRenderContext()->GetDrGPUContext()->StoreVkPipelineCacheData();
}
if (RSSystemProperties::GetGpuApiType() == GpuApiType::VULKAN) {
renderEngine_->GetRenderContext()->GetDrGPUContext()->StoreVkPipelineCacheData();
}
#endif
}

View File

@ -552,7 +552,6 @@ void RSScreenManager::ProcessScreenConnectedLocked(std::shared_ptr<HdiOutput> &o
void RSScreenManager::ProcessScreenDisConnectedLocked(std::shared_ptr<HdiOutput> &output)
{
ScreenId id = ToScreenId(output->GetScreenId());
if (screens_.count(id) == 0) {
RS_LOGW("RSScreenManager %{public}s: There is no screen for id %{public}" PRIu64, __func__, id);
} else {

View File

@ -130,7 +130,6 @@ public:
// Call on thread sync
virtual void OnSync() = 0;
// !!!!!!!!!!!!!!!!!!!!!!!!!! Important Note:
// DrawFunc can only access the RT members variables, accessing staging members will cause a crash
virtual Drawing::RecordingCanvas::DrawFunc CreateDrawFunc() const = 0;

View File

@ -116,7 +116,7 @@ ColorSpace::ColorSpace(const ColorSpacePrimaries &primaries, const TransferFunc
toXYZ(ComputeXYZD50(primaries)),
transferFunc(transferFunc)
{
std::array<float, 2> whiteP = {primaries.wX, primaries.wY};
std::array<float, 2> whiteP = {primaries.wX, primaries.wY}; // 2 means two dimension x, y
whitePoint = whiteP;
}
@ -124,7 +124,7 @@ ColorSpace::ColorSpace(const ColorSpacePrimaries &primaries, float gamma)
: colorSpaceName(ColorSpaceName::CUSTOM),
toXYZ(ComputeXYZD50(primaries))
{
std::array<float, 2> whiteP = {primaries.wX, primaries.wY};
std::array<float, 2> whiteP = {primaries.wX, primaries.wY}; // 2 means two dimension x, y
whitePoint = whiteP;
transferFunc = {};
transferFunc.g = gamma;