mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-12-19 04:59:38 +00:00
change unnecessary LOGW to LOGD
Signed-off-by: liuzhiyuan <liuzhiyuan31@huawei.com>
This commit is contained in:
parent
0fdae1e351
commit
249f80d4e9
rosen
modules/2d_graphics/src/render_context
samples/2d_graphics/drawing_engine
@ -160,7 +160,7 @@ void RenderContext::InitializeEglContext()
|
||||
|
||||
eglMakeCurrent(eglDisplay_, EGL_NO_SURFACE, EGL_NO_SURFACE, eglContext_);
|
||||
|
||||
LOGW("Create EGL context successfully, version %{public}d.%{public}d", major, minor);
|
||||
LOGD("Create EGL context successfully, version %{public}d.%{public}d", major, minor);
|
||||
}
|
||||
|
||||
void RenderContext::MakeCurrent(EGLSurface surface) const
|
||||
@ -181,7 +181,7 @@ void RenderContext::SwapBuffers(EGLSurface surface) const
|
||||
if (!eglSwapBuffers(eglDisplay_, surface)) {
|
||||
LOGE("Failed to SwapBuffers on surface %{public}p, error is %{public}x", surface, eglGetError());
|
||||
} else {
|
||||
LOGW("SwapBuffers successfully, surface is %{public}p", surface);
|
||||
LOGD("SwapBuffers successfully, surface is %{public}p", surface);
|
||||
}
|
||||
}
|
||||
|
||||
@ -208,7 +208,7 @@ EGLSurface RenderContext::CreateEGLSurface(EGLNativeWindowType eglNativeWindow)
|
||||
return EGL_NO_SURFACE;
|
||||
}
|
||||
|
||||
LOGW("CreateEGLSurface: %{public}p", surface);
|
||||
LOGD("CreateEGLSurface: %{public}p", surface);
|
||||
|
||||
eglSurface_ = surface;
|
||||
return surface;
|
||||
@ -222,7 +222,7 @@ void RenderContext::SetColorSpace(ColorGamut colorSpace)
|
||||
bool RenderContext::SetUpGrContext()
|
||||
{
|
||||
if (grContext_ != nullptr) {
|
||||
LOGW("grContext has already created!!");
|
||||
LOGD("grContext has already created!!");
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -294,7 +294,7 @@ sk_sp<SkSurface> RenderContext::AcquireSurface(int width, int height)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
LOGE("CreateCanvas successfully!!! (%{public}p)", skSurface_->getCanvas());
|
||||
LOGD("CreateCanvas successfully!!! (%{public}p)", skSurface_->getCanvas());
|
||||
return skSurface_;
|
||||
}
|
||||
|
||||
@ -302,7 +302,7 @@ void RenderContext::RenderFrame()
|
||||
{
|
||||
// flush commands
|
||||
if (skSurface_->getCanvas() != nullptr) {
|
||||
LOGW("RenderFrame: Canvas is %{public}p", skSurface_->getCanvas());
|
||||
LOGD("RenderFrame: Canvas is %{public}p", skSurface_->getCanvas());
|
||||
skSurface_->getCanvas()->flush();
|
||||
} else {
|
||||
LOGW("canvas is nullptr!!!");
|
||||
|
@ -141,7 +141,7 @@ void EGLManager::Init()
|
||||
return;
|
||||
}
|
||||
|
||||
LOGW("Create EGL context successfully, version %{public}d.%{public}d", major, minor);
|
||||
LOGD("Create EGL context successfully, version %{public}d.%{public}d", major, minor);
|
||||
}
|
||||
|
||||
bool EGLManager::IsEglContextReady()
|
||||
@ -166,7 +166,7 @@ EGLSurface EGLManager::CreateSurface(EGLNativeWindowType eglNativeWindow)
|
||||
return EGL_NO_SURFACE;
|
||||
}
|
||||
|
||||
LOGW("CreateEGLSurface: %{public}p", surface);
|
||||
LOGD("CreateEGLSurface: %{public}p", surface);
|
||||
|
||||
eglSurface_ = surface;
|
||||
return surface;
|
||||
@ -195,7 +195,7 @@ void EGLManager::SwapBuffers()
|
||||
if (!eglSwapBuffers(eglDisplay_, eglSurface_)) {
|
||||
LOGE("Failed to SwapBuffers on surface %{public}p, error=%{public}x", eglSurface_, eglGetError());
|
||||
} else {
|
||||
LOGW("SwapBuffers successfully, surface is %{public}p", eglSurface_);
|
||||
LOGD("SwapBuffers successfully, surface is %{public}p", eglSurface_);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ void GLESRenderBackend::InitDrawContext()
|
||||
bool GLESRenderBackend::SetUpGrContext()
|
||||
{
|
||||
if (grContext_ != nullptr) {
|
||||
LOGW("grContext has already created!!");
|
||||
LOGD("grContext has already created!!");
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -124,7 +124,7 @@ void GLESRenderBackend::RenderFrame()
|
||||
{
|
||||
// flush commands
|
||||
if (skSurface_->getCanvas() != nullptr) {
|
||||
LOGW("RenderFrame: Canvas is %{public}p", skSurface_->getCanvas());
|
||||
LOGD("RenderFrame: Canvas is %{public}p", skSurface_->getCanvas());
|
||||
skSurface_->getCanvas()->flush();
|
||||
} else {
|
||||
LOGW("canvas is nullptr!!!");
|
||||
|
Loading…
Reference in New Issue
Block a user