mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2025-01-01 12:20:13 +00:00
commit
b510cd38b4
@ -12,6 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/ohos.gni")
|
||||
import("//foundation/graphic/standard/graphic_config.gni")
|
||||
|
||||
## Build bootanimation {{{
|
||||
config("bootanimation_config") {
|
||||
@ -28,13 +29,8 @@ config("bootanimation_config") {
|
||||
"-g3",
|
||||
]
|
||||
|
||||
if ("${product_name}" == "rk3566" || "${product_name}" == "rk3568" ||
|
||||
"${product_name}" == "watchos" || "${product_name}" == "Hi3516DV300" ||
|
||||
"${product_name}" == "ohos-arm64") {
|
||||
defines = [ "ACE_DISABLE_GL" ]
|
||||
} else {
|
||||
defines = [ "ACE_ENABLE_GL" ]
|
||||
}
|
||||
defines = []
|
||||
defines += gpu_defines
|
||||
}
|
||||
|
||||
ohos_executable("bootanimation") {
|
||||
|
@ -134,7 +134,7 @@ int32_t NativeWindowFlushBuffer(struct NativeWindow *window, struct NativeWindow
|
||||
|
||||
BLOGD("NativeWindowFlushBuffer damage w is %{public}d, h is %{public}d, acquire fence: %{public}d",
|
||||
config.damage.w, config.damage.h, fenceFd);
|
||||
window->surface->FlushBuffer(buffer->sfbuffer, fenceFd, config);
|
||||
window->surface->FlushBuffer(buffer->sfbuffer, -1, config);
|
||||
|
||||
// unreference nativewindowbuffer object
|
||||
return OHOS::GSERROR_OK;
|
||||
|
@ -12,22 +12,19 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/config/clang/clang.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/ohos_var.gni")
|
||||
|
||||
if ("${product_name}" == "rk3566" || "${product_name}" == "rk3568" ||
|
||||
"${product_name}" == "watchos" || "${product_name}" == "Hi3516DV300" ||
|
||||
if ("${product_name}" == "watchos" || "${product_name}" == "Hi3516DV300" ||
|
||||
"${product_name}" == "ohos-arm64" ||
|
||||
"${product_name}" == "qemu-arm-linux-min") {
|
||||
gpu_defines = [ "ACE_DISABLE_GL" ]
|
||||
ace_enable_gpu = false # temporary gpu
|
||||
ace_enable_gpu = false
|
||||
libgl = []
|
||||
} else if ("${product_name}" == "rk3566" || "${product_name}" == "rk3568") {
|
||||
gpu_defines = [ "ACE_ENABLE_GL" ]
|
||||
ace_enable_gpu = true
|
||||
libgl = [ "//device/hihope/hardware/gpu:mali-bifrost-g52-g2p0-ohos" ]
|
||||
} else {
|
||||
gpu_defines = [ "ACE_ENABLE_GL" ]
|
||||
ace_enable_gpu = true
|
||||
}
|
||||
|
||||
if (ace_enable_gpu) {
|
||||
libgl = [ "//device/hisilicon/hardware/gpu:gpu_libs" ]
|
||||
} else {
|
||||
libgl = []
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user