summaryrefslogtreecommitdiff
path: root/libs/ui/PictureProfileHandle.cpp
diff options
context:
space:
mode:
author Brian Lindahl <blindahl@google.com> 2024-10-30 10:42:21 -0600
committer Brian Lindahl <blindahl@google.com> 2024-11-06 19:22:09 -0700
commit7a4cb7e128ccaa6211abb83b510b6ff126b253b5 (patch)
treee816be04ca98ec599500c024330473083ea982cb /libs/ui/PictureProfileHandle.cpp
parent3a707e05da55bf606182f47079159ebe57829420 (diff)
Add plumbing to pass picture profiles down to Composer HAL
Bug: 337330263 Test: atest OutputLayerWriteStateToHWCTest Test: atest OutputUpdateAndWriteCompositionStateTest Flag: com.android.graphics.libgui.flags.apply_picture_profiles Change-Id: I082f4bc47c2d402e15fc3a3de5224889752272fa
Diffstat (limited to 'libs/ui/PictureProfileHandle.cpp')
-rw-r--r--libs/ui/PictureProfileHandle.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/libs/ui/PictureProfileHandle.cpp b/libs/ui/PictureProfileHandle.cpp
new file mode 100644
index 0000000000..0701e906f0
--- /dev/null
+++ b/libs/ui/PictureProfileHandle.cpp
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2009 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <ui/PictureProfileHandle.h>
+
+#include <format>
+
+namespace android {
+
+const PictureProfileHandle PictureProfileHandle::NONE(0);
+
+::std::string toString(const PictureProfileHandle& handle) {
+ return std::format("{:#010x}", handle.getId());
+}
+
+} // namespace android