mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-27 09:10:54 +00:00
commit
a53952f358
@ -1764,14 +1764,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;
|
||||
|
@ -4019,9 +4019,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
|
||||
}
|
||||
|
||||
|
@ -565,7 +565,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 {
|
||||
|
@ -132,7 +132,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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user