From 6ad317c0dfcf07723ee36ed33c3eb16585469f63 Mon Sep 17 00:00:00 2001 From: Marin Shalamanov Date: Wed, 29 Jul 2020 23:34:07 +0200 Subject: [SF, CE] Rename viewport, frame and destinationClip This change introduces a new class ProjectionSpace and uses it in OutputCompositionState to describe the layer stack space, the physical display space and the oriented display space. We rename viewport to layerStackSpaceRect, frame to orientedDisplaySpaceRect and destinationClip displaySpaceRect. This aims to provide better readibility of the code and it's also consistent with SurfaceControl.setDisplayProjction where layerStackRect and displayRect are used for viewport and frame. Bug: 161793589 Bug: 160404780 Test: m && flash device Test: atest libsurfaceflinger_unittest libcompositionengine_test Test: adb shell dumpsys SurfaceFlinger Change-Id: Iee20b908157cbef4de4d9addf429f98356ec942d --- libs/ui/DebugUtils.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libs/ui/DebugUtils.cpp') diff --git a/libs/ui/DebugUtils.cpp b/libs/ui/DebugUtils.cpp index f394635aa2..1f006ceb69 100644 --- a/libs/ui/DebugUtils.cpp +++ b/libs/ui/DebugUtils.cpp @@ -321,10 +321,6 @@ std::string decodeRenderIntent(RenderIntent renderIntent) { return std::string("Unknown RenderIntent"); } -std::string to_string(const android::Rect& rect) { - return StringPrintf("(%4d,%4d,%4d,%4d)", rect.left, rect.top, rect.right, rect.bottom); -} - std::string toString(const android::DeviceProductInfo::ManufactureOrModelDate& date) { using ModelYear = android::DeviceProductInfo::ModelYear; using ManufactureYear = android::DeviceProductInfo::ManufactureYear; -- cgit v1.2.3-59-g8ed1b