mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-30 10:41:29 +00:00
gaojing
Signed-off-by: balingbaling <libingbing12@huawei.com> Change-Id: I1bab543353607b14c5b2f6c981ac9554a0b1808c
This commit is contained in:
parent
18cd5a6886
commit
b20bf3494c
@ -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;
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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