From cba8ca5f7b826bfe844422f16222ea05aa19504f Mon Sep 17 00:00:00 2001
From: lihui
Date: Mon, 24 Mar 2025 16:15:06 +0800
Subject: [PATCH] add close hebc doc
Signed-off-by: lihui
---
graphic/graphic_2d/native_window/external_window.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/graphic/graphic_2d/native_window/external_window.h b/graphic/graphic_2d/native_window/external_window.h
index 41b01ce8d..b5127d831 100644
--- a/graphic/graphic_2d/native_window/external_window.h
+++ b/graphic/graphic_2d/native_window/external_window.h
@@ -544,6 +544,18 @@ int32_t OH_NativeWindow_NativeWindowAbortBuffer(OHNativeWindow *window, OHNative
* @brief Sets or obtains the attributes of a native window, including the width, height, and content format.\n
* This interface is a non-thread-safe type interface.\n
*
+ * API Note
+ *
+ * Performance Note
+ *
By default, the native window buffer uses the CPU to access data,
+ * and when the application does not need to use the CPU to access the native window buffer data,
+ * it can actively disable the CPU access capability to improve energy efficiency and reduce power consumption.
+ *
+ * Refer to [How to actively close the CPU to access the native window buffer data to reduce power consumption]
+ * {@link https://developer.huawei.com/consumer/cn/doc/harmonyos-faqs/faqs-arkgraphics-2d-14}Guide,
+ * which optimizes power consumption for data reads and writes in native window buffers.
+ *
+ *
* @syscap SystemCapability.Graphic.Graphic2D.NativeWindow
* @param window Indicates the pointer to a OHNativeWindow instance.
* @param code Indicates the operation code, pointer to NativeWindowOperation.
--
Gitee